Mypy exclude paths option #1109
Answered
by
hauntsaninja
laurentluce
asked this question in
Q&A
-
Hello. The exclude flag can be set to ignore some files from being discovered by mypy. Is there an option to not report mypy errors for some files? The files are discovered and type checked but the errors pointing to those files are ignored. |
Beta Was this translation helpful? Give feedback.
Answered by
hauntsaninja
Mar 21, 2022
Replies: 1 comment 2 replies
-
Yes, in your mypy config file, you can do something like:
If you have some code that you don't want mypy to look at at all (mypy will replace all symbols originating from this code with
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
laurentluce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, in your mypy config file, you can do something like:
If you have some code that you don't want mypy to look at at all (mypy will replace all symbols originating from this code with
Any
), you can do something like: