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

@@ -29,7 +29,7 @@ ModuleInfo = NamedTuple('ModuleInfo', [('name', str),
])
def getmembers(
object: object,
predicate: Callable[[Any], bool] = ...
predicate: Optional[Callable[[Any], bool]] = ...
) -> List[Tuple[str, Any]]: ...
def getmoduleinfo(path: str) -> Optional[ModuleInfo]: ...
def getmodulename(path: str) -> Optional[str]: ...