mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
fix module argument to unittest.main (#2403)
This commit is contained in:
@@ -226,7 +226,7 @@ def skip(reason: Union[str, unicode]) -> Any: ...
|
||||
class TestProgram:
|
||||
result = ... # type: TestResult
|
||||
|
||||
def main(module: str = ..., defaultTest: Optional[str] = ...,
|
||||
def main(module: Union[None, Text, types.ModuleType] = ..., defaultTest: Optional[str] = ...,
|
||||
argv: Optional[Sequence[str]] = ...,
|
||||
testRunner: Union[Type[TextTestRunner], TextTestRunner, None] = ...,
|
||||
testLoader: TestLoader = ..., exit: bool = ..., verbosity: int = ...,
|
||||
|
||||
@@ -307,7 +307,7 @@ class TextTestRunner(TestRunner):
|
||||
class TestProgram:
|
||||
result = ... # type: TestResult
|
||||
|
||||
def main(module: str = ...,
|
||||
def main(module: Union[None, str, ModuleType] = ...,
|
||||
defaultTest: Union[str, Iterable[str], None] = ...,
|
||||
argv: Optional[List[str]] = ...,
|
||||
testRunner: Union[Type[TestRunner], TestRunner, None] = ...,
|
||||
|
||||
Reference in New Issue
Block a user