mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
fix module argument to unittest.main (#2403)
This commit is contained in:
1 parent
a08c6eae23
commit
8b9e4c378a
2 files changed
+2
-2
No files matched your search
@@ -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