mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +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
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user