mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
The loadout case actually could (and previously did) hide bugs from the type checker, since mypy was smart enough to see that we were removing None from the input it assumed that the member was non-optional, but later modifications could cause null values, and since those came from the UI mypy couldn't reason about this. This meant that mypy assumed the type could not be optional and wouldn't check that case.
32 lines
726 B
INI
32 lines
726 B
INI
[mypy]
|
|
# TODO: Cleanup so we can enable the checks commented out here.
|
|
# check_untyped_defs = True
|
|
# disallow_any_decorated = True
|
|
# disallow_any_expr = True
|
|
# disallow_any_generics = True
|
|
# disallow_any_unimported = True
|
|
disallow_untyped_decorators = True
|
|
# disallow_untyped_defs = True
|
|
follow_imports = silent
|
|
# implicit_reexport = False
|
|
namespace_packages = True
|
|
no_implicit_optional = True
|
|
warn_redundant_casts = True
|
|
# warn_return_any = True
|
|
warn_unreachable = True
|
|
warn_unused_ignores = True
|
|
|
|
[mypy-dcs.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-faker.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-PIL.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-winreg.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-shapely.*]
|
|
ignore_missing_imports = True |