Improve annotations for __instancecheck__, __subclasscheck__ (#9291)

This commit is contained in:
Nikita Sobolev
2022-11-28 14:15:02 +03:00
committed by GitHub
parent c6800d1214
commit ea2ccc3c21
2 changed files with 3 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ class ABCMeta(type):
else:
def __new__(mcls: type[Self], name: str, bases: tuple[type, ...], namespace: dict[str, Any], **kwargs: Any) -> Self: ...
def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...
def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...
def __instancecheck__(cls: ABCMeta, instance: Any) -> bool: ...
def __subclasscheck__(cls: ABCMeta, subclass: type) -> bool: ...
def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ...
def register(cls: ABCMeta, subclass: type[_T]) -> type[_T]: ...