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.
Following on from this discussion and this PR, it might be good to add the Python builtin
nextto the exclusions list for FBT003.Consider this code:
The rule is upset about
Falsehere, but there is no keyword arg you can use. Trying to usedefault=Falseyields:TypeError: next() takes no keyword arguments.