--- /dev/null
+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