ExecutionMode¶
- class ExecutionMode(value)[source]¶
Bases:
EnumControls whether the target module is executed during stub generation.
- RUNTIME¶
Execute the module and use live objects for full introspection. This is the default and enables
**kwargsMRO back-tracing.
- AST_ONLY¶
Parse the AST only; no module execution. Safer but less precise.
- AUTO¶
Execute the module when possible; fall back to AST-only on load failures.
- RUNTIME = 'runtime'¶
- AST_ONLY = 'ast_only'¶
- AUTO = 'auto'¶
See also
Public API reference — overview of all public names.