Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Mypy is not ignoring multiple errors

With the following configuration file mypy won’t ignore override errors but import-type ones only

[mypy]
disable_error_code = import-untype,override

What’s the correct way to specify multiple values for the disable_error_code setting?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The error code you’re trying to disable, import-untype, is not recognized by mypy. The correct error code for disabling the import-related errors would be import-untyped

So, you could simply change out your mypy.ini configuration in for:

[mypy]
disable_error_code = import-untyped,override
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading