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

@ -1,6 +1,6 @@
import re
from typing import Any, Dict
from typing import Any
import pytest
@ -126,7 +126,7 @@ def test_commit_hash():
assert commit_hash not in render
def pager_context(num_packages: int) -> Dict[str, Any]:
def pager_context(num_packages: int) -> dict[str, Any]:
return {
"request": Request(),
"singular": "%d package found.",