FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

Repository navigation

Make sure we use VERSIONS file in typeshed, refs #12062 - #12066

Closed
sobolevn wants to merge 1 commit into
python:issue-12062from
sobolevn:issue-12062
Closed

sobolevn wants to merge 1 commit into
python:issue-12062from
sobolevn:issue-12062

Conversation

sobolevn commented Jan 25, 2022 •
edited
Loading

Copy link
Copy Markdown
Member

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

CC @srittau
Closes #12062

sobolevn requested a review from hauntsaninja January 25, 2022 13:24
Comment thread mypy/stubtest.py
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 commented Jan 27, 2022 •
edited
Loading

Copy link
Copy Markdown
Collaborator

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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL