Closed
Description
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
.