mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -4,7 +4,7 @@ import unittest.loader
|
||||
import unittest.result
|
||||
import unittest.suite
|
||||
from types import ModuleType
|
||||
from typing import Any, Iterable, List, Protocol, Type
|
||||
from typing import Any, Iterable, Protocol, Type
|
||||
|
||||
class _TestRunner(Protocol):
|
||||
def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase) -> unittest.result.TestResult: ...
|
||||
@@ -21,12 +21,12 @@ class TestProgram:
|
||||
warnings: str | None
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
testNamePatterns: List[str] | None
|
||||
testNamePatterns: list[str] | None
|
||||
def __init__(
|
||||
self,
|
||||
module: None | str | ModuleType = ...,
|
||||
defaultTest: str | Iterable[str] | None = ...,
|
||||
argv: List[str] | None = ...,
|
||||
argv: list[str] | None = ...,
|
||||
testRunner: Type[_TestRunner] | _TestRunner | None = ...,
|
||||
testLoader: unittest.loader.TestLoader = ...,
|
||||
exit: bool = ...,
|
||||
@@ -39,7 +39,7 @@ class TestProgram:
|
||||
tb_locals: bool = ...,
|
||||
) -> None: ...
|
||||
def usageExit(self, msg: Any = ...) -> None: ...
|
||||
def parseArgs(self, argv: List[str]) -> None: ...
|
||||
def parseArgs(self, argv: list[str]) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def createTests(self, from_discovery: bool = ..., Loader: unittest.loader.TestLoader | None = ...) -> None: ...
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user