API reference
python:astx:astx.ModuleInitializer.__init__
method __init__
__init__(body: Block, loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/callables.py:578
Declared as: python:astx:astx.callables.ModuleInitializer.__init__
Construct a module initializer.
Parameters
-
body — Statements executed at startup.; Type: Block
-
loc — Location of the initializer declaration.; Type: SourceLocation
Returns
Type: None