mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
28970ccc91
commit
a509e40474
31 changed files with 175 additions and 195 deletions
|
@ -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.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue