Skip to content

typeshed's VERSIONS file now supports submodules #10483

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

Closed
srittau opened this issue May 16, 2021 · 0 comments · Fixed by #11069
Closed

typeshed's VERSIONS file now supports submodules #10483

srittau opened this issue May 16, 2021 · 0 comments · Fixed by #11069
Labels

Comments

@srittau
Copy link
Contributor

srittau commented May 16, 2021

typeshed's VERSIONS file now supports sub-modules. For example:

importlib: 2.7-
importlib.resources: 3.7-

Currently, mypy just ignores sub-modules and treats them like their parent module. It would be useful if mypy would recognize that a sub-module was not available in a certain Python version, though.

hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this issue Sep 7, 2021
Fixes python#10483

Tested manually using importlib.metadata
hauntsaninja added a commit that referenced this issue Sep 8, 2021
Fixes #10483

Tested manually using importlib.metadata

Co-authored-by: hauntsaninja <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant