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 lintrunner #7534

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Fix mypy lintrunner #7534

merged 1 commit into from
Jan 7, 2025

Conversation

mergennachin
Copy link
Contributor

@mergennachin mergennachin commented Jan 6, 2025

Sometimes we have duplicate subpackage names (e.g., backends/arm/quantizer, backends/qualcomm/quantizer)

If init.py is not given in parent directories, it doesn't resolve the packages unambiguously unless "explicit-package-bases" option is set.

https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-paths-to-modules

Issue: #7441

Test Plan

Before
Comment out backends/**/*.py*, it was silently failing.

After
It is failing, but with actual typechecker errors.

Copy link

pytorch-bot bot commented Jan 6, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7534

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

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 6, 2025
@mergennachin mergennachin requested a review from tarun292 January 6, 2025 23:08
@mergennachin mergennachin merged commit 507c767 into main Jan 7, 2025
40 checks passed
@mergennachin mergennachin deleted the lintrunner_fix branch January 7, 2025 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants