massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / _weakref.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/_weakref.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/_weakref.pyi
new file mode 100644 (file)
index 0000000..ef52994
--- /dev/null
@@ -0,0 +1,24 @@
+import sys\r
+from typing import Any, Callable, Generic, Optional, TypeVar\r
+\r
+_T = TypeVar('_T')\r
+\r
+class CallableProxyType(object):  # "weakcallableproxy"\r
+    def __getattr__(self, attr: str) -> Any: ...\r
+\r
+class ProxyType(object):  # "weakproxy"\r
+    def __getattr__(self, attr: str) -> Any: ...\r
+\r
+class ReferenceType(Generic[_T]):\r
+    if sys.version_info >= (3, 4):\r
+        __callback__: Callable[[ReferenceType[_T]], Any]\r
+    def __init__(self, o: _T, callback: Callable[[ReferenceType[_T]],\r
+                                                 Any] = ...) -> None: ...\r
+    def __call__(self) -> Optional[_T]: ...\r
+    def __hash__(self) -> int: ...\r
+\r
+ref = ReferenceType\r
+\r
+def getweakrefcount(object: Any) -> int: ...\r
+def getweakrefs(object: Any) -> int: ...\r
+def proxy(object: _T, callback: Callable[[_T], Any] = ...) -> ref[_T]: ...\r