module documentation

Comparison checker from the basic checker.

Class ComparisonChecker Checks for comparisons.
Constant COMPARISON_OPERATORS Undocumented
Constant LITERAL_NODE_TYPES Undocumented
Constant TYPE_QNAME Undocumented
Constant TYPECHECK_COMPARISON_OPERATORS Undocumented
Function _is_one_arg_pos_call Is this a call with exactly 1 positional argument ?
COMPARISON_OPERATORS = (source)

Undocumented

Value
frozenset(('==', '!=', '<', '>', '<=', '>='))
LITERAL_NODE_TYPES = (source)

Undocumented

Value
(nodes.Const, nodes.Dict, nodes.List, nodes.Set)
TYPE_QNAME: str = (source)

Undocumented

Value
'builtins.type'
TYPECHECK_COMPARISON_OPERATORS = (source)

Undocumented

Value
frozenset(('is', 'is not', '==', '!='))
def _is_one_arg_pos_call(call: nodes.NodeNG) -> bool: (source)

Is this a call with exactly 1 positional argument ?