massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / abc.pyi
1 from typing import Any, Dict, Set, Tuple, Type\r
2 import _weakrefset\r
3 \r
4 # NOTE: mypy has special processing for ABCMeta and abstractmethod.\r
5 \r
6 def abstractmethod(funcobj: Any) -> Any: ...\r
7 \r
8 class ABCMeta(type):\r
9     # TODO: FrozenSet\r
10     __abstractmethods__ = ...  # type: Set[Any]\r
11     _abc_cache = ...  # type: _weakrefset.WeakSet\r
12     _abc_invalidation_counter = ...  # type: int\r
13     _abc_negative_cache = ...  # type: _weakrefset.WeakSet\r
14     _abc_negative_cache_version = ...  # type: int\r
15     _abc_registry = ...  # type: _weakrefset.WeakSet\r
16     def __init__(self, name: str, bases: Tuple[type, ...], namespace: Dict[Any, Any]) -> None: ...\r
17     def __instancecheck__(cls: "ABCMeta", instance: Any) -> Any: ...\r
18     def __subclasscheck__(cls: "ABCMeta", subclass: Any) -> Any: ...\r
19     def _dump_registry(cls: "ABCMeta", *args: Any, **kwargs: Any) -> None: ...\r
20     def register(cls: "ABCMeta", subclass: Type[Any]) -> None: ...\r
21 \r
22 # TODO: The real abc.abstractproperty inherits from "property".\r
23 class abstractproperty(object):\r
24     def __new__(cls, func: Any) -> Any: ...\r
25     __isabstractmethod__ = ...  # type: bool\r
26     doc = ...  # type: Any\r
27     fdel = ...  # type: Any\r
28     fget = ...  # type: Any\r
29     fset = ...  # type: Any\r