API reference
python:astx:astx.ClassConstruct.__init__
method __init__
__init__(class_name: str, args: tuple[astx.DataType, ...] = (), *, keywords: tuple[astx.KeywordArgument, ...] = (), loc: astx.SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/classes_ext.py:236
Declared as: python:astx:astx.classes_ext.ClassConstruct.__init__
Initialize one default class construction expression.
Parameters
-
class_name — Name of class.; Type: str
-
args — Arguments supplied to the operation.; Type: tuple[astx.DataType, ...]
-
keywords — Keywords.; Type: tuple[astx.KeywordArgument, ...]
-
loc — Source coordinates associated with the node.; Type: astx.SourceLocation
Returns
Type: None