API reference
python:astx:astx.types.operators.BoolUnaryOp.__init__
method __init__
__init__(op_code: str, operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/types/operators.py:504
Initialize the boolean unary operation.
Parameters
-
op_code — Type: str
-
operand — Type: DataType
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]