Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error code misc and build errors #9727

Copy link
Copy link
@hauntsaninja

Description

@hauntsaninja
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.