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

(cherry picked from commit fc32b98341)
This commit is contained in:
Dan Albert
2021-07-07 15:47:19 -07:00
parent 7015b3a40d
commit 65dfa8e209
5 changed files with 15 additions and 20 deletions

View File

@@ -323,7 +323,7 @@ class ControlPoint(MissionTarget, ABC):
self.target_position: Optional[Point] = None
def __repr__(self):
return f"<{__class__}: {self.name}>"
return f"<{self.__class__}: {self.name}>"
@property
def ground_objects(self) -> List[TheaterGroundObject]: