Skip to content

E251: false positive for PEP 696 TypeVar defaults #1277

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

Closed
asottile-sentry opened this issue Mar 17, 2025 · 0 comments · Fixed by #1278
Closed

E251: false positive for PEP 696 TypeVar defaults #1277

asottile-sentry opened this issue Mar 17, 2025 · 0 comments · Fixed by #1278

Comments

@asottile-sentry
Copy link

https://peps.python.org/pep-0696/

minimal example:

class C[T: (int, str) = int]:
    pass
$ ./venv/bin/flake8 t4.py 
t4.py:1:22: E251 unexpected spaces around keyword / parameter equals
t4.py:1:24: E251 unexpected spaces around keyword / parameter equals
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 a pull request may close this issue.

1 participant