From 76060ca154e120a9405d564df2c2e8415037b0ae Mon Sep 17 00:00:00 2001 From: Robin Franken <77491494+rmfranken@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:05:26 +0100 Subject: [PATCH] chore(cff): use type hint for list from python standard collection Co-authored-by: Cyril Matthey-Doret --- gimie/parsers/cff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gimie/parsers/cff.py b/gimie/parsers/cff.py index 0fc62d6..cb8ab55 100644 --- a/gimie/parsers/cff.py +++ b/gimie/parsers/cff.py @@ -120,7 +120,7 @@ def doi_to_url(doi: str) -> str: return f"https://doi.org/{doi_match}" -def get_cff_doi(data: bytes) -> Optional[List[str]]: +def get_cff_doi(data: bytes) -> Optional[list[str]]: """Given a CFF file, returns a list of DOIs, if any. Parameters