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) |
||
|---|---|---|
| .. | ||
| CParse | ||
| DOH | ||
| Doxygen | ||
| Include | ||
| Modules | ||
| Preprocessor | ||
| Swig | ||
| .clang-format | ||
| .clang-format-ignore | ||
| Makefile.am | ||
| README | ||
README
SWIG Source directory
Source/DOH - A core set of basic datatypes including
strings, lists, hashes, and files. Used
extensively by the rest of SWIG.
Source/Swig - Swig core. Type-system, utility functions.
Source/Preprocessor - SWIG C Preprocessor
Source/CParse - SWIG C Parser (still messy)
Source/Modules - Language modules.
Source/Include - Include files.