massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / abc.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/abc.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/abc.pyi
new file mode 100644 (file)
index 0000000..7896e91
--- /dev/null
@@ -0,0 +1,26 @@
+from _typeshed import SupportsWrite
+from typing import Any, Callable, Tuple, Type, TypeVar
+
+_T = TypeVar("_T")
+_FuncT = TypeVar("_FuncT", bound=Callable[..., Any])
+
+# These definitions have special processing in mypy
+class ABCMeta(type):
+    __abstractmethods__: frozenset[str]
+    def __init__(self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]) -> None: ...
+    def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...
+    def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...
+    def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ...
+    def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...
+
+def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
+
+class abstractproperty(property): ...
+
+# These two are deprecated and not supported by mypy
+def abstractstaticmethod(callable: _FuncT) -> _FuncT: ...
+def abstractclassmethod(callable: _FuncT) -> _FuncT: ...
+
+class ABC(metaclass=ABCMeta): ...
+
+def get_cache_token() -> object: ...