mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 02:31:09 +08:00
Add Typeguard back to inspect.isclass() return type (#5829)
This commit is contained in:
1 parent
1f3c703993
commit
41630486e3
1 file changed
+1
-3
+1
-3
@@ -48,9 +48,7 @@ TPFLAGS_IS_ABSTRACT: int
|
||||
def getmembers(object: object, predicate: Optional[Callable[[Any], bool]] = ...) -> list[Tuple[str, Any]]: ...
|
||||
def getmodulename(path: str) -> Optional[str]: ...
|
||||
def ismodule(object: object) -> TypeGuard[ModuleType]: ...
|
||||
|
||||
# TODO: use TypeGuard[Type[Any]] after python/mypy#10486 is resolved
|
||||
def isclass(object: object) -> bool: ...
|
||||
def isclass(object: object) -> TypeGuard[Type[Any]]: ...
|
||||
def ismethod(object: object) -> TypeGuard[MethodType]: ...
|
||||
def isfunction(object: object) -> TypeGuard[FunctionType]: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user