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
I would expect to get an error because get_tasks is missing an argument annotation and a return type annotation.
However, mypy --config-file /path/to/mypy.ini /path/to/rpc_server.py gives no errors. When I remove disallow_any = generics, I get the expected error. I also get the expected error if I simply do mypy --disallow-untyped-defs --disallow-any=generics—somehow it makes a difference that I use a config file.
changed the title [-]Passing `--disallow-any=generics` breaks `--disallow-untyped-defs`[/-][+]Setting `disallow_any = generics` in mypy.ini breaks `disallow_untyped_defs = True`[/+]on Oct 8, 2017
Activity
[-]Passing `--disallow-any=generics` breaks `--disallow-untyped-defs`[/-][+]Setting `disallow_any = generics` in mypy.ini breaks `disallow_untyped_defs = True`[/+]JelleZijlstra commentedon Oct 9, 2017
I found the root cause and will submit a PR. A couple of untyped defs slipped into mypy itself because of this bug.
Fix config file parsing of disallow_any/disallow_untyped_defs combina…