From 3d920f2b50bdcbe1ca5494bae2e04a0b68c5e503 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 23 Nov 2023 15:04:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20List/Dict=20for=20type=20a?= =?UTF-8?q?nnotations=20to=20support=20ye=20olde=20Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/mods4pandas/mods4pandas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/mods4pandas/mods4pandas.py b/qurator/mods4pandas/mods4pandas.py index f651556..1b30c1e 100755 --- a/qurator/mods4pandas/mods4pandas.py +++ b/qurator/mods4pandas/mods4pandas.py @@ -7,7 +7,7 @@ import warnings from lxml import etree as ET from itertools import groupby from operator import attrgetter -from typing import List +from typing import Dict, List from collections.abc import MutableMapping, Sequence import click @@ -254,7 +254,7 @@ def mets_to_dict(mets, raise_errors=True): pass return value -def pages_to_dict(mets, raise_errors=True) -> list[dict]: +def pages_to_dict(mets, raise_errors=True) -> List[Dict]: # TODO replace asserts by ValueError result = []