Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W504: Fix positional-only / keyword-only mark being treated as a binary operator #1098

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Jackenmen
Copy link

Fixes #951

Done by tracking enclosure count when inside a function param list (detected by def keyword) and checking whether the previous token's text is , to be sure that the currently checked token can be evaluated in a param name context.

@Jackenmen
Copy link
Author

Conflict in testsuite/python38.py resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

W504: positional only / keyword only argument marker at end of long line
1 participant