mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
remove Python 3.12 syntax
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user