diff --git a/game/db.py b/game/db.py index 2504d4f3..4a2fbf75 100644 --- a/game/db.py +++ b/game/db.py @@ -383,7 +383,7 @@ class DefaultLiveries: OH_58D.Liveries = DefaultLiveries -F_16C_50.Liveries = DefaultLiveries +F_16C_50.Liveries = DefaultLiveries # type: ignore P_51D_30_NA.Liveries = DefaultLiveries Ju_88A4.Liveries = DefaultLiveries B_17G.Liveries = DefaultLiveries diff --git a/game/event/event.py b/game/event/event.py index 1076da9c..ad20e06c 100644 --- a/game/event/event.py +++ b/game/event/event.py @@ -219,10 +219,10 @@ class Event: for loss in debriefing.ground_object_losses: # TODO: This should be stored in the TGO, not in the pydcs Group. if not hasattr(loss.group, "units_losts"): - loss.group.units_losts = [] + loss.group.units_losts = [] # type: ignore loss.group.units.remove(loss.unit) - loss.group.units_losts.append(loss.unit) + loss.group.units_losts.append(loss.unit) # type: ignore def commit_building_losses(self, debriefing: Debriefing) -> None: for loss in debriefing.building_losses: diff --git a/gen/visualgen.py b/gen/visualgen.py index 765a8f3c..5d8ffead 100644 --- a/gen/visualgen.py +++ b/gen/visualgen.py @@ -17,15 +17,15 @@ class MarkerSmoke(StaticType): id = "big_smoke" category = "Effects" name = "big_smoke" - shape_name = 5 - rate = 0.1 + shape_name = 5 # type: ignore + rate = 0.1 # type: ignore class Smoke(StaticType): id = "big_smoke" category = "Effects" name = "big_smoke" - shape_name = 2 + shape_name = 2 # type: ignore rate = 1 @@ -33,7 +33,7 @@ class BigSmoke(StaticType): id = "big_smoke" category = "Effects" name = "big_smoke" - shape_name = 3 + shape_name = 3 # type: ignore rate = 1 @@ -41,7 +41,7 @@ class MassiveSmoke(StaticType): id = "big_smoke" category = "Effects" name = "big_smoke" - shape_name = 4 + shape_name = 4 # type: ignore rate = 1 @@ -56,7 +56,7 @@ def __monkey_static_dict(self: Static) -> dict[str, Any]: __original_static_dict = Static.dict -Static.dict = __monkey_static_dict +Static.dict = __monkey_static_dict # type: ignore FRONT_SMOKE_RANDOM_SPREAD = 4000 FRONT_SMOKE_TYPE_CHANCES = { diff --git a/mypy.ini b/mypy.ini index b4d0925b..8e8d05ca 100644 --- a/mypy.ini +++ b/mypy.ini @@ -16,9 +16,6 @@ warn_redundant_casts = True warn_unreachable = True warn_unused_ignores = True -[mypy-dcs.*] -ignore_missing_imports = True - [mypy-faker.*] ignore_missing_imports = True diff --git a/requirements.txt b/requirements.txt index eeed5fc3..c43966a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,7 @@ pathspec==0.8.1 pefile==2019.4.18 Pillow==8.2.0 pre-commit==2.10.1 --e git://github.com/pydcs/dcs@75a8dd35331e8fd337ba05fe950732077433f378#egg=pydcs +-e git://github.com/pydcs/dcs@1fa15385d2f8300a125155c8ac307d5c37e70152#egg=pydcs pyinstaller==4.3 pyinstaller-hooks-contrib==2021.1 pyparsing==2.4.7