API reference
python:astx:astx.LiteralComplex.__init__
method __init__
__init__(real: float, imag: float, loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/literals/numeric.py:522
Declared as: python:astx:astx.literals.numeric.LiteralComplex.__init__
Initialize a generic complex number.
Parameters
-
real โ Type: float
-
imag โ Type: float
-
loc โ Type: SourceLocation