ClassSymbol¶
- class ClassSymbol(name: str, lineno: int, live_type: type | None = None, ast_info: ClassInfo | None = None)[source]¶
Bases:
StubSymbolA class definition, combining runtime type with AST metadata.
- Parameters:
live_type (type or None) – The runtime class object from
load_module().Nonein AST-only mode.ast_info (ClassInfo or None) – Metadata from
ASTHarvester.
Examples
>>> sym = ClassSymbol(name="Widget", lineno=5) >>> sym.kind <SymbolKind.CLASS: 'class'>
See also
Public API reference — overview of all public names.