🏷️ Fix some type issues (mypy)

This commit is contained in:
2023-05-11 21:40:38 +02:00
parent b437bbbf70
commit 5e0d7b174c
2 changed files with 23 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ from ..idfm_interface.idfm_types import TrainStatus
class NextPassage(BaseModel):
line: str
line: int
operator: str
destinations: list[str]
atStop: bool
@@ -19,4 +19,4 @@ class NextPassage(BaseModel):
class NextPassages(BaseModel):
ts: int
passages: dict[str, dict[str, list[NextPassage]]]
passages: dict[int, dict[str, list[NextPassage]]]