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:351
Declared as: python:astx:astx.operators.CompareOp.__init__
Initialize the CompareOp instance.
Parameters
-
left — Type: DataType
-
ops — Type: Iterable[Literal[==, !=, <, >, <=, >=]]
-
comparators — Type: Iterable[DataType]
-
loc — Type: SourceLocation