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
When providing True or False as an argument to the append, count, insert, and remove methods of a list, the rule for catching boolean traps (FBT003) yields false positives even though the arguments are positional-only.
file.py:2:18: FBT003 Boolean positional value in function call
file.py:3:17: FBT003 Boolean positional value in function call
file.py:4:21: FBT003 Boolean positional value in function call
file.py:5:18: FBT003 Boolean positional value in function call
When providing
True
orFalse
as an argument to theappend
,count
,insert
, andremove
methods of alist
, the rule for catching boolean traps (FBT003
) yields false positives even though the arguments are positional-only.I created
file.py
which contains:Using ruff
v0.0.265
, I ran:and got the output:
This follows up on #1336.
Thank you!
The text was updated successfully, but these errors were encountered: