mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Inspect: use any instead of object (#585)
* Have inspect.getmembers' return value use Any instead of object
This commit is contained in:
committed by
Guido van Rossum
parent
9586411dad
commit
f90a6d1c0e
@@ -10,7 +10,7 @@ ModuleInfo = NamedTuple('ModuleInfo', [('name', str),
|
||||
])
|
||||
def getmembers(object: object,
|
||||
predicate: Callable[[Any], bool] = ...
|
||||
) -> List[Tuple[str, object]]: ...
|
||||
) -> List[Tuple[str, Any]]: ...
|
||||
def getmoduleinfo(path: str) -> Optional[ModuleInfo]: ...
|
||||
def getmodulename(path: str) -> Optional[str]: ...
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ ModuleInfo = NamedTuple('ModuleInfo', [('name', str),
|
||||
])
|
||||
def getmembers(object: object,
|
||||
predicate: Callable[[Any], bool] = ...,
|
||||
) -> List[Tuple[str, object]]: ...
|
||||
) -> List[Tuple[str, Any]]: ...
|
||||
def getmoduleinfo(path: str) -> Optional[ModuleInfo]: ...
|
||||
def getmodulename(path: str) -> Optional[str]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user