Skip to content
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

fix mypy #7685

Merged
merged 2 commits into from
Jun 21, 2023
Merged

fix mypy #7685

merged 2 commits into from
Jun 21, 2023

Conversation

pmeier
Copy link
Contributor

@pmeier pmeier commented Jun 20, 2023

This error comes from a mypy update that includes python/typeshed#9891. Basically, now mypy knows that a module does not need to have a __file__ attribute (esoteric, but you can create modules at runtime with types.ModuleType). We can just silence it here, since we are sure that the modules we are working are always the real thing.

@pmeier pmeier added the other if you have no clue or if you will manually handle the PR in the release notes label Jun 20, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 20, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7685

Note: Links to docs will display an error until the docs builds have been completed.

❌ 33 New Failures

As of commit 38e229c:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks for the fix Philip.

lmfao at the "error" though. Thanks mypy, as usual.

@pmeier pmeier merged commit 5884205 into pytorch:main Jun 21, 2023
@github-actions
Copy link

Hey @pmeier!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@pmeier pmeier deleted the mypy branch June 27, 2023 08:00
facebook-github-bot pushed a commit that referenced this pull request Jul 3, 2023
Reviewed By: vmoens

Differential Revision: D47186587

fbshipit-source-id: a77c300da806c98f5a6679b97cc462f5be218997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed other if you have no clue or if you will manually handle the PR in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants