1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2025-12-16 08:02:39 +00:00

fix type errors

with mypy --strict
This commit is contained in:
2022-06-04 18:47:54 +03:00
parent ad634e9c6e
commit 80e15b0622
5 changed files with 41 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ ConfigDate = Union[str, datetime.datetime]
def load_config() -> Dict[str, Any]:
with open("config.yml", "r", encoding="utf-8") as f:
result = yaml.safe_load(f)
return result
return result # type: ignore
def get_start_date(date: ConfigDate) -> datetime.datetime: