-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Generic with ParamSpec raise TypeError #126
Labels
Comments
I believe this is covered by the note in the README that says "Certain PEP 612 special cases in user-defined Generics are also not available." We could create a |
It works with that hack:
|
I added a reference to this limitation to the docs in #171. I'd still accept a PR fixing it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I create generic class with specifying
__init__
arguments through ParamSpec:mypy type checking works as expected, but during runtime I got next error:
Is it a bug? It works fine in 3.10 and 3.11
The text was updated successfully, but these errors were encountered: