remove Python 3.12 syntax

This commit is contained in:
mr-tz
2024-10-21 11:49:45 +00:00
committed by Willi Ballenthin
parent 70c96a29b4
commit cfb632edc8

View File

@@ -218,7 +218,7 @@ class LibraryStringClassification:
metadata: LibraryString
def create_index[T](s: list[T], k: str) -> Mapping[Any, list[T]]:
def create_index(s: list, k: str) -> Mapping[Any, list]:
"""create an index of the elements in `s` using the key `k`"""
s_by_k = collections.defaultdict(list)
for v in s: