mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Update to latest pydcs.
This includes the basics that we need to get type checking for pydcs calls. Type checking has been disabled in a few monkey-patching cases. Patches ought to be sent upstream (or in the case of dead unit tracking, replaced with a better model).
This commit is contained in:
parent
96c7b87ac7
commit
9de08dc83f
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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 = {
|
||||
|
||||
3
mypy.ini
3
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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user