-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support PEP 613 #11305
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
Support PEP 613 #11305
Conversation
Resolves python#9404
Thank you for working on this. I would really love to be able to use type aliases in typeshed. |
from typing_extensions import TypeAlias | ||
|
||
x: TypeAlias = list(int) # E: Invalid type alias: expression is not a valid type \ | ||
# E: Too many arguments for "list" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second error is weird but seems unrelated to your changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I assumed it was just a fixtures thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, so excited about this feature! 👍
Thank you! This is awesome. |
Resolves #9404