dcs-retribution/mypy.ini
Dan Albert 350f08be2f Add FastAPI interface between the game and map.
A possible explanation for the infrequent CTDs we've been seeing since
adding fast forward is that QWebChannel doesn't keep a reference to the
python objects that it passes to js, so if the object is GC'd before the
front end is done with it, it crashes.

We don't really like QWebChannel anyway, so this begins replacing that
with FastAPI.
2022-02-15 18:14:34 -08:00

27 lines
683 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-faker.*]
ignore_missing_imports = True
[mypy-shapely.*]
# https://github.com/Toblerity/Shapely/issues/721
ignore_missing_imports = True
[mypy-uvicorn.*]
ignore_missing_imports = True