module documentation

Checks for yoda comparisons (variable before constant) See https://en.wikipedia.org/wiki/Yoda_conditions.

Class MisplacedComparisonConstantChecker Checks the placement of constants in comparisons.
Function register Undocumented
Constant COMPARISON_OPERATORS Undocumented
Constant REVERSED_COMPS Undocumented
def register(linter: PyLinter): (source)

Undocumented

COMPARISON_OPERATORS = (source)

Undocumented

Value
frozenset(('==', '!=', '<', '>', '<=', '>='))
REVERSED_COMPS: dict[str, str] = (source)

Undocumented

Value
{'<': '>', '<=': '>=', '>': '<', '>=': '<='}