-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
No error on new union syntax with union of fake types (TypeAlias
and None
)
#11582
Comments
Interesting case 🤔 Forward references are allowed in https://www.python.org/dev/peps/pep-0613/#forward-references But, I think that |
This is quite hard to fix. Because Fields that are present at the moment: Lines 1104 to 1121 in b47245a
So, my plan is:
I am not going to touch anything related to |
Moreover, we need to change how |
@KotlinIsland take a look at #11611 |
@sobolevn Looks good! but does that handle |
Any types in a new union syntax that are fake(looking at you
None
) will be runtime errors.The text was updated successfully, but these errors were encountered: