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,4 +1,3 @@
|
|||
from typing import List
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
@ -21,7 +20,7 @@ def setup(db_test):
|
|||
return
|
||||
|
||||
|
||||
def run_main(args: List[str] = []):
|
||||
def run_main(args: list[str] = []):
|
||||
with mock.patch("sys.argv", ["aurweb-adduser"] + args):
|
||||
adduser.main()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue