Fix mypy's complaints

This commit is contained in:
Raffson
2023-07-01 17:20:02 +02:00
parent 3b745c43eb
commit f6f1d69048
3 changed files with 7 additions and 6 deletions

View File

@@ -64,8 +64,8 @@ class Migrator:
for p in c.ato.packages:
try_set_attr(p, "custom_name")
try_set_attr(p, "frequency")
if self.is_liberation and isinstance(p.time_over_target, datetime):
p.time_over_target = (
if self.is_liberation and isinstance(p.time_over_target, datetime): # type: ignore
p.time_over_target = ( # type: ignore
p.time_over_target - self.game.conditions.start_time
)