mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add Typeguard back to inspect.isclass() return type (#5829)
This commit is contained in:
@@ -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