fix(python): use standard dict/list type annotation

Since Python 3.9 list/dict can be used as type hint.
This commit is contained in:
Jelle van der Waa 2022-07-31 20:58:39 +02:00 committed by Jelle van der Waa
parent 28970ccc91
commit a509e40474
31 changed files with 175 additions and 195 deletions

View file

@ -27,7 +27,7 @@ import sys
import tempfile
from collections import defaultdict
from typing import Any, Dict
from typing import Any
import orjson
@ -151,7 +151,7 @@ EXTENDED_FIELD_HANDLERS = {
}
def as_dict(package: Package) -> Dict[str, Any]:
def as_dict(package: Package) -> dict[str, Any]:
return {
"ID": package.ID,
"Name": package.Name,