From f90a6d1c0eeda7b2b267d9bbfcc6681f4d9f8168 Mon Sep 17 00:00:00 2001 From: Alvaro Caceres Date: Thu, 6 Oct 2016 13:36:17 -0500 Subject: [PATCH] Inspect: use any instead of object (#585) * Have inspect.getmembers' return value use Any instead of object --- stdlib/2.7/inspect.pyi | 2 +- stdlib/3/inspect.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/inspect.pyi b/stdlib/2.7/inspect.pyi index 4800b29d7..8abb2a0ae 100644 --- a/stdlib/2.7/inspect.pyi +++ b/stdlib/2.7/inspect.pyi @@ -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]: ... diff --git a/stdlib/3/inspect.pyi b/stdlib/3/inspect.pyi index 0f7af374c..5fc5b1929 100644 --- a/stdlib/3/inspect.pyi +++ b/stdlib/3/inspect.pyi @@ -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]: ...