ExecutionMode

class ExecutionMode(value)[source]

Bases: Enum

Controls 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 **kwargs MRO 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.