You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make it possible to ignore annotations in certain files/directories #562
Maybe we need a configuration option to force certain modules to not be type checked (this would also allow arbitrary expressions in function annotations). This might be useful for legacy code that uses annotations -- and also for legacy code in general. The configuration option could be command line argument or a setting in a mypy configuration file, for example. By default, we could enable this for the Python std lib.
This was mentioned on python-ideas when discussing PEP 484.
An older idea is to not type check modules that don't import typing, but maybe that is too restrictive -- again, this was mentioned in the PEP 484 discussion.
changed the title [-]Make it possible to ignore annotation in certain files/directories[/-][+]Make it possible to ignore annotations in certain files/directories[/+]on Jan 28, 2015
Activity
[-]Make it possible to ignore annotation in certain files/directories[/-][+]Make it possible to ignore annotations in certain files/directories[/+]JelleZijlstra commentedon Jul 1, 2017
Config files now support an
ignore_errors = Trueoption to ignore all errors in a file, so I think this can be closed.gvanrossum commentedon Jul 1, 2017
No, pep 484 specifies# type: ignore which is still not implemented.
JelleZijlstra commentedon Jul 1, 2017
Then this is a dupe of #626.