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

Add rule for Python 3.12+ class type parameter lists #10628

Closed
autinerd opened this issue Mar 27, 2024 · 1 comment
Closed

Add rule for Python 3.12+ class type parameter lists #10628

autinerd opened this issue Mar 27, 2024 · 1 comment

Comments

@autinerd
Copy link
Contributor

Hello!

Since Python 3.12, classes in this syntax:

class A(Generic[T]):
    ...

can be written as this:

class A[T]:
    ...

It would be cool to have an upgrade rule for this.

@AlexWaygood
Copy link
Member

Thanks for the suggestion! Closing as a duplicate of #4617

@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
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

No branches or pull requests

2 participants