misleading E721 Do not compare types, use isinstance()
for bool
#10948
Labels
rule
Implementing or modifying a lint rule
just crossed this case where for
type(component_wise) is bool
ruff suggest genericisinstance(component_wise, bool)
which is not the same as this comparison takes int as bool:see why this si happening in https://stackoverflow.com/a/37888668/4521646
The text was updated successfully, but these errors were encountered: