mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Mark inspect.getmembers as Optional for both Py2 and Py3 (#2172)
This commit is contained in:
committed by
Jelle Zijlstra
parent
da7b04904c
commit
351d019241
@@ -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]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user