API reference
python:astx:astx.Variable.__init__
method __init__
__init__(name: str, type_: DataType = AnyType(), loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/data.py:292
Declared as: python:astx:astx.data.Variable.__init__
Initialize the Variable instance.
Parameters
-
name — Type: str
-
type_ — Type: DataType
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]