More mypy strictness flags?
Author: The-CompilerCreated Jan 29, 2021Updated Sep 2, 2026
Labelscomponent: infrastructurepriority: 2 - low
In mypy.ini we have some strictness flags commented out:
-
disallow_any_generics -
no_implicit_optional -
warn_return_any -
no_implicit_reexport
We should investigate how much work it is to enable those, and whether we want to.
There's also
-
disallow_untyped_calls -
disallow_untyped_defs
which we can't enable globally, but maybe for some more files?
Source: qutebrowser/qutebrowser