Skip to content

Update comments post #5768 #9527

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

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jan 14, 2023

Now that #5768 is closed and completed. Comments mentioning the inability to use certain imports due to the types dependency restriction are no longer true. However, some still can't be installed for a different reason: The dependency isn't declared by the original package. So the stub_uploader refuses it.

I looked for mentions of numpy, comtypes and 5768. If you know more that I missed, please let me know.

@github-actions

This comment has been minimized.

@Avasam Avasam changed the title Update numpy and 5768 comments Update comments post #5768 Jan 14, 2023
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Let's leave the pycocotools comments as they are for now. It's a shortcoming of the logic in the stub_uploader (#9518 (comment)), and I'd like to try fixing that shortcoming :)

The other changes look great!

@Avasam
Copy link
Collaborator Author

Avasam commented Jan 14, 2023

Let's leave the pycocotools comments as they are for now. It's a shortcoming of the logic in the stub_uploader (#9518 (comment)), and I'd like to try fixing that shortcoming :)

Ahh! (Read the comment you left on the pycocotools pr too). Alright I'll undo that comment since it may be fixed separately (and doesn't accurately describe the issue anyway)

@Avasam
Copy link
Collaborator Author

Avasam commented Jan 14, 2023

The only one I didn't make a PR for is Bleach because it's already tackled in #9314.

@@ -264,7 +264,7 @@ def run_mypy(
# Stub completion is checked by pyright (--allow-*-defs)
"--allow-untyped-defs",
"--allow-incomplete-defs",
"--allow-subclassing-any", # TODO: Do we still need this now that non-types dependencies are allowed? (#5768)
"--allow-subclassing-any", # See #9491
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If #9491 is accepted, then this line will be removed. If not then this links to the discussion/decision.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 1a9aa3f into python:main Jan 14, 2023
@Avasam Avasam deleted the update-numpy-and-5768-comments branch January 14, 2023 13:20
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.

2 participants