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
Following on from this discussion and this PR, it might be good to add the Python builtin next to the exclusions list for FBT003.
Consider this code:
next(my_generator, False)
The rule is upset about False here, but there is no keyword arg you can use. Trying to use default=False yields: TypeError: next() takes no keyword arguments.
The text was updated successfully, but these errors were encountered:
Following on from this discussion and this PR, it might be good to add the Python builtin
next
to the exclusions list for FBT003.Consider this code:
The rule is upset about
False
here, but there is no keyword arg you can use. Trying to usedefault=False
yields:TypeError: next() takes no keyword arguments
.The text was updated successfully, but these errors were encountered: