Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
committed by
GitHub
parent
cba3a814c6
commit
fc244bb592
@@ -22,7 +22,7 @@ import sys
|
||||
from argparse import REMAINDER, Namespace
|
||||
from contextlib import redirect_stderr
|
||||
from io import StringIO
|
||||
from typing import Any, Callable, Coroutine, List, TypeVar
|
||||
from typing import Any, Callable, Coroutine, TypeVar
|
||||
|
||||
import pyperf
|
||||
|
||||
@@ -76,7 +76,7 @@ def make_test(
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
def add_cmdline_args(cmd: List[str], args: Namespace) -> None:
|
||||
def add_cmdline_args(cmd: list[str], args: Namespace) -> None:
|
||||
if args.log:
|
||||
cmd.extend(["--log"])
|
||||
cmd.extend(args.tests)
|
||||
|
||||
Reference in New Issue
Block a user