Skip to content

FBT001 exclude operators like __and__, __or__ and __xor__, etc. #14202

@randolf-scholz

Description

@randolf-scholz

FBT001 should probably by default exclude methods used for operator overloading, in particular boolean logic specific operations:

  • __and__, __rand__, __iand__
  • __or__, __ror__, __ior__
  • __xor__, __rxor__, __ixor__

And potentially also arithmetic operations like __add__, __sub__, __mul__, etc. (These may add overloads / type hints for boolean values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions