Global¶
- class astroid.nodes.Global(names: list[str], lineno: int | None = None, col_offset: int | None = None, parent: NodeNG | None = None, *, end_lineno: int | None = None, end_col_offset: int | None = None)[source]¶
Bases:
NoChildrenNode
,Statement
Class representing an
ast.Global
node.>>> import astroid >>> node = astroid.extract_node('global a_global') >>> node <Global l.1 at 0x7f23b2e9de10>