API reference
python:astx:astx.CompareOp.__init__
method __init__
__init__(left: DataType, ops: Iterable[Literal['==', '!=', '<', '>', '<=', '>=']], comparators: Iterable[DataType], loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/operators.py:310
Declared as: python:astx:astx.operators.CompareOp.__init__
Initialize the CompareOp instance.
Parameters
-
left — Left operand.; Type: DataType
-
ops — Ops.; Type: Iterable[Literal['==', '!=', '<', '>', '<=', '>=']]
-
comparators — Comparators.; Type: Iterable[DataType]
-
loc — Source coordinates associated with the node.; Type: SourceLocation
Returns
Type: None