FBT001
exclude operators like __and__
, __or__
and __xor__
, etc.
#14202
Labels
rule
Implementing or modifying a lint rule
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)The text was updated successfully, but these errors were encountered: