You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Types from the typing module that don't exist in the specified Python version are not detected by Mypy #6593
I think this is not the desired behaviour of Mypy. If I set the version of Python to 3.5, it doesn't report Deque imports, even though this type only appeared in Python 3.6.
Thanks for reporting! But it's not a flaw in mypy itself, it's in typeshed, which has a separate repo: https://github.com/python/typeshed. Please report it there!
These type aliases (Deque etc) are added dynamically by mypy for subtle reasons, so this can't be fixed in typeshed. I think we can track this as part of #3413 (although it is not the same issue, the two should be probably fixed together).
Activity
gvanrossum commentedon Mar 26, 2019
Thanks for reporting! But it's not a flaw in mypy itself, it's in typeshed, which has a separate repo: https://github.com/python/typeshed. Please report it there!
ilevkivskyi commentedon Apr 1, 2019
These type aliases (
Dequeetc) are added dynamically by mypy for subtle reasons, so this can't be fixed in typeshed. I think we can track this as part of #3413 (although it is not the same issue, the two should be probably fixed together).gvanrossum commentedon Apr 1, 2019
OK, reopening.
AlexWaygood commentedon Mar 26, 2022
Python 3.5 is no longer supported by mypy, and I can't reproduce this with any other aliases, so I'm closing this.