Fixed type hints (NoneType -> None, imported Mapping)

main
Felix Stupp 2 years ago
parent d236501c2b
commit e4fe661e77
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -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

Loading…
Cancel
Save