mirror of https://github.com/swig/swig.git
A generated stub class with no wrapped members had an empty suite, which is invalid Python syntax. Stubs could also refer to base classes from %imported modules without importing the corresponding Python proxy module, leaving those names unresolved. Track whether each stub class emits a member and use an ellipsis when its body would otherwise be empty. Collect modules referenced through %import and emit them before declarations, using the same package and relative import rules as the generated Python proxy. Keep annotation tests active with -pyi by parsing annotations from the generated stub instead of expecting them on runtime objects. Include each generated .pyi file in multi-module Pyrefly checks. Add Python 3.14 Linux CI configurations for -pyi -typehints with and without -builtin. See #3473. Assisted-by: Codex (GPT-5.6 Sol) |
||
|---|---|---|
| .. | ||
| cmake.yml | ||
| linux.yml | ||
| macos.yml | ||
| windows.yml | ||