API reference

python:astx:astx.types.operators.UnaryOp

class UnaryOp

UnaryOp(op_code: str, operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/types/operators.py:240

AST class for the unary operator.

Attributes

Methods

Attributes

Search documentation

Type to search.