KEMBAR78
Make sure we use `VERSIONS` file in `typeshed`, refs #12062 by sobolevn · Pull Request #12066 · python/mypy · GitHub
Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 25, 2022

I don't know how I can test this, but local testing shows that everything works fine.
Ideas? 🤔

CC @srittau
Closes #12062

@sobolevn sobolevn requested a review from hauntsaninja January 25, 2022 13:24
module = ".".join(path.relative_to(stdlib_dir).parts[:-1] + (path.stem,))
if module.split(".")[0] in packages:
if (
module.split(".")[0] in packages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is now a bit suspect to me:

  • It only checks the top-level name of the package.
  • And it shouldn't be necessary, since the package name doesn't get added to packages if the module is not supported, due to the check above.

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Jan 27, 2022

Thanks for finding this! Yeah, I agree with srittau. I opened a different version in #12083, which should also correctly deal with subsubmodules.

JukkaL pushed a commit that referenced this pull request Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants