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

new union syntax (types.Union) doesn't work on generic bounds #10949

Closed
DetachHead opened this issue Aug 9, 2021 · 4 comments · Fixed by #11431
Closed

new union syntax (types.Union) doesn't work on generic bounds #10949

DetachHead opened this issue Aug 9, 2021 · 4 comments · Fixed by #11431
Labels
bug mypy got something wrong false-positive mypy gave an error on correct code priority-0-high

Comments

@DetachHead DetachHead added the bug mypy got something wrong label Aug 9, 2021
@DetachHead DetachHead changed the title new usion syntax doesn't work on generic bounds new union syntax doesn't work on generic bounds Aug 9, 2021
@DetachHead DetachHead changed the title new union syntax doesn't work on generic bounds new union syntax (types.Union) doesn't work on generic bounds Aug 9, 2021
@hauntsaninja
Copy link
Collaborator

Thanks, repros on latest master (in general, latest master has fixes for several PEP 604 issues at runtime)

@JukkaL JukkaL added false-positive mypy gave an error on correct code priority-0-high labels Aug 9, 2021
@DetachHead
Copy link
Contributor Author

seems to be working now on master. assuming #11140 fixed it

@hauntsaninja
Copy link
Collaborator

Thanks for checking! If you're up for a it, a PR adding a test would be very welcome!

@DetachHead
Copy link
Contributor Author

@hauntsaninja here you go #11431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong false-positive mypy gave an error on correct code priority-0-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants