doctest: fix testmod types (#3859)

This commit is contained in:
Shantanu
2020-03-17 11:44:51 -07:00
committed by GitHub
parent 8e0af4e651
commit 814cf53597
2 changed files with 2 additions and 3 deletions

View File

@@ -106,8 +106,8 @@ class DebugRunner(DocTestRunner): ...
master: Optional[DocTestRunner]
def testmod(m: Optional[types.ModuleType] = ..., name: Optional[str] = ..., globs: Dict[str, Any] = ..., verbose: Optional[bool] = ...,
report: bool = ..., optionflags: int = ..., extraglobs: Dict[str, Any] = ...,
def testmod(m: Optional[types.ModuleType] = ..., name: Optional[str] = ..., globs: Optional[Dict[str, Any]] = ..., verbose: Optional[bool] = ...,
report: bool = ..., optionflags: int = ..., extraglobs: Optional[Dict[str, Any]] = ...,
raise_on_error: bool = ..., exclude_empty: bool = ...) -> TestResults: ...
def testfile(filename: str, module_relative: bool = ..., name: Optional[str] = ..., package: Union[None, str, types.ModuleType] = ...,
globs: Optional[Dict[str, Any]] = ..., verbose: Optional[bool] = ..., report: bool = ..., optionflags: int = ...,