Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

'tuple[int, ...]' raises 'Unexpected "..."' error #11654

Closed
asvetlov opened this issue Dec 2, 2021 · 4 comments
Closed

'tuple[int, ...]' raises 'Unexpected "..."' error #11654

asvetlov opened this issue Dec 2, 2021 · 4 comments
Labels
bug mypy got something wrong

Comments

@asvetlov
Copy link

asvetlov commented Dec 2, 2021

I replaced Tuple[int, ...] with tuple[int, ...] generic alias during upgrading my codebase to Python 3.9.

mypy 9.10 raises error: Unexpected "..." [misc] error for this line.

What I've missed?

The reproducer is trivial:

  1. Create a file with the following content:
ID = tuple[int, ...]
  1. Run mypy for this file
@asvetlov asvetlov added the bug mypy got something wrong label Dec 2, 2021
@hauntsaninja
Copy link
Collaborator

Thanks, this has been fixed on master for a long time.

@asvetlov
Copy link
Author

asvetlov commented Dec 2, 2021

Nice!
Is there any estimation for the new release?

@asvetlov asvetlov closed this as completed Dec 2, 2021
@hauntsaninja
Copy link
Collaborator

Hopefully soon, but it's out of my hands. You can subscribe to #11158

@asvetlov
Copy link
Author

asvetlov commented Dec 2, 2021

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants