Type check the contents of untyped functions.

By default mypy doesn't type check the code within an untyped function.
This enables that and fixes typing errors to accomodate it.

This did uncover a very old bug:
https://github.com/dcs-liberation/dcs_liberation/issues/1417
This commit is contained in:
Dan Albert
2021-07-07 15:47:19 -07:00
parent 299ed88f09
commit fc32b98341
5 changed files with 15 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
[mypy]
# TODO: Cleanup so we can enable the checks commented out here.
# check_untyped_defs = True
check_untyped_defs = True
# disallow_any_decorated = True
# disallow_any_expr = True
# disallow_any_generics = True