We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! I want judge if this is a bug.
Directory tree
helloworld ├── __init__.py └── a.py
a.py
# type: ignore class Something: pass
__init__.py
from .a import Something
mypy output
❯ mypy helloworld helloworld/__init__.py:1: error: Module 'helloworld.a' has no attribute 'Something' Found 1 error in 1 file (checked 2 source files)
However, when I removed # type: ignore on the first line of a.py
# type: ignore
❯ mypy helloworld Success: no issues found in 2 source files
Is this a bug?
Thank you!
The text was updated successfully, but these errors were encountered:
No, it's as designed. The special marker # type: ignore at the top of a file means the file is not processed at all.
Sorry, something went wrong.
Related to #9318
Ignore mypy errors not the entire file
bf6aede
hint from python/mypy#9449
No branches or pull requests
Hello! I want judge if this is a bug.
Directory tree
a.py
__init__.py
mypy output
However, when I removed
# type: ignore
on the first line of a.pymypy output
Is this a bug?
Thank you!
The text was updated successfully, but these errors were encountered: