mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
fix module argument to unittest.main (#2403)
This commit is contained in:
@@ -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