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

Error code misc and build errors #9727

Closed
hauntsaninja opened this issue Nov 17, 2020 · 0 comments · Fixed by #9728
Closed

Error code misc and build errors #9727

hauntsaninja opened this issue Nov 17, 2020 · 0 comments · Fixed by #9728
Labels
bug mypy got something wrong priority-0-high

Comments

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Nov 17, 2020

It probably shouldn't be possible to "disable" build errors at all, let alone under an overloaded and innocuous looking error code (note the new, clearer summary for blocking errors is unreleased / from #9674).

λ mkdir -p package/a  
λ mkdir -p package/b
λ echo 'x: int = "asdf"' >> package/b/x.py
λ echo 'y: str = 0' >> package/a/x.py
λ echo 'another_error: int = "adsf"' > package/unrelated.py

λ mypy package --show-error-codes                          
package/b/x.py: error: Duplicate module named 'x' (also at 'package/a/x.py')  [misc]
Found 1 error in 1 file (errors prevented further checking)

λ mypy package --show-error-codes --disable-error-code misc
Success: no issues found in 3 source files

Thanks to @ehossack for mentioning that people are doing this.

@hauntsaninja hauntsaninja added the bug mypy got something wrong label Nov 17, 2020
hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this issue Nov 17, 2020
Fixes python#9727 (and effectively also adds a test for python#9674)
JukkaL pushed a commit that referenced this issue Nov 17, 2020
Fixes #9727 (and effectively also adds a test for #9674)

Co-authored-by: hauntsaninja <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong priority-0-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant