You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed your recent PR #1333 . In my code base I encountered two more flake8-boolean-trap FBT003 false positives for getattr and for the index method of list, tuple and other Sequences. E.g.
getattr(someobj, attrname, False) # return False if `attrname` is not found on `someobj`mylist.index(True) # find index of first occurrence of True
It would be great to get rid of some # noqa: FBT003 comments for these cases.
The text was updated successfully, but these errors were encountered:
I highly appreciate your amazing work on ruff!
I noticed your recent PR #1333 . In my code base I encountered two more flake8-boolean-trap FBT003 false positives for
getattr
and for theindex
method oflist
,tuple
and other Sequences. E.g.It would be great to get rid of some
# noqa: FBT003
comments for these cases.The text was updated successfully, but these errors were encountered: