API reference
python:astx:astx.ClassConstruct
class ClassConstruct
ClassConstruct(class_name: str, args: tuple[astx.DataType, ...] = (), *, keywords: tuple[astx.KeywordArgument, ...] = (), loc: astx.SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/classes_ext.py:251
Declared as: python:astx:astx.classes_ext.ClassConstruct
Class construction with ordered positional and keyword expressions.
Attributes
-
class_name — Type: str
-
type_ — Type: AnyType
-
args — Type: tuple[astx.DataType, Ellipsis]
-
keywords — Type: tuple[astx.KeywordArgument, Ellipsis]
Methods
-
__init__ — Initialize one default class construction expression.
-
__str__ — Render one class construction expression as text.
-
get_struct — Build one repr structure for class construction.