Setting disallow_any = generics
in mypy.ini breaks disallow_untyped_defs = True
#4075
Labels
disallow_any = generics
in mypy.ini breaks disallow_untyped_defs = True
#4075
I have the following code (
rpc_server.py
):And
mypy.ini
: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 removedisallow_any = generics
, I get the expected error. I also get the expected error if I simply domypy --disallow-untyped-defs --disallow-any=generics
—somehow it makes a difference that I use a config file.The text was updated successfully, but these errors were encountered: