API reference

python:astx:astx.types.UnaryOp.__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:259

Declared as: python:astx:astx.types.operators.UnaryOp.__init__

Initialize the UnaryOp instance.

Parameters

Search documentation

Type to search.