Skip to content

Add next to FBT003 exclusions #6711

Closed
@Garrett-R

Description

@Garrett-R

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.

Metadata

Metadata

Assignees

Labels

acceptedReady for implementationbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions