Run mypy with check_untyped_defs
Background
By default, mypy does not check functions/methods without type hints in their signatures. This can, and should be, done by setting check_untyped_defs = True
.
Implementation
Run mypy with check_untyped_defs = True
and resolve all resulting issues. Consider enabling other relevant options from https://mypy.readthedocs.io/en/stable/error_code_list2.html and https://mypy.readthedocs.io/en/stable/config_file.html. Note that check_untyped_defs = True
is not needed if disallow_untyped_defs = True
.