Skip to content

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