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

Allow usage of all typing members in annotations #2

Open
KotlinIsland opened this issue Oct 21, 2021 · 0 comments · May be fixed by #85
Open

Allow usage of all typing members in annotations #2

KotlinIsland opened this issue Oct 21, 2021 · 0 comments · May be fixed by #85

Comments

@KotlinIsland
Copy link
Owner

KotlinIsland commented Oct 21, 2021

def foo() -> Never: ...  # allowed
b = Union[int, str]  # not allowed

basedtyping as well.
Maybe types as well.

We could modify sitecustomize.py to actually load these for real. (mypy install-site-types maybe)

b = Union[int, str]  # allowed
@KotlinIsland KotlinIsland added this to the 2.0 milestone Oct 26, 2021
@KotlinIsland KotlinIsland modified the milestones: 2.0, 3.0 Nov 24, 2021
@KotlinIsland KotlinIsland linked a pull request Dec 1, 2021 that will close this issue
@KotlinIsland KotlinIsland modified the milestones: 2.0, 1.4 Mar 4, 2022
@KotlinIsland KotlinIsland changed the title When __future__.annotations allow usage of all typing members in annotations Allow usage of all typing members in annotations Jun 8, 2023
@KotlinIsland KotlinIsland removed this from the 1.4 milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant