Mark inspect.getmembers as Optional for both Py2 and Py3 (#2172)

This commit is contained in:
Mathieu Leduc-Hamel
2018-05-29 13:43:34 -04:00
committed by Jelle Zijlstra
parent da7b04904c
commit 351d019241
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ if sys.version_info < (3, 6):
def getmoduleinfo(path: str) -> Optional[ModuleInfo]: ...
def getmembers(object: object,
predicate: Callable[[Any], bool] = ...,
predicate: Optional[Callable[[Any], bool]] = ...,
) -> List[Tuple[str, Any]]: ...
def getmodulename(path: str) -> Optional[str]: ...