From e4fe661e77d0cb6e89f983a6e98e28916c8184ee Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 11 Jun 2022 22:24:24 +0200 Subject: [PATCH] Fixed type hints (NoneType -> None, imported Mapping) --- maintain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintain.py b/maintain.py index f7f5e28..330a5e1 100755 --- a/maintain.py +++ b/maintain.py @@ -13,7 +13,7 @@ import shutil import subprocess import sys import tempfile -from typing import Callable, Iterable, List +from typing import Callable, Iterable, List, Mapping warn = partial(print, file=sys.stderr) @@ -396,7 +396,7 @@ def lookup_scans(scans, *id_ranges): def extract_dates(scans: List[ScanFile]) -> List[str]: # used dict instead of set to gurantee input order - dates: Mapping[str, NoneType] = dict() + dates: Mapping[str, None] = dict() for scan in scans: if scan.date: dates[scan.date] = None