From ce33a45411de8afa921210d2e611da5c721398d5 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 21 Sep 2015 15:14:18 -0700 Subject: [PATCH] add _weakref.pyi --- builtins/2.7/_weakref.pyi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 builtins/2.7/_weakref.pyi diff --git a/builtins/2.7/_weakref.pyi b/builtins/2.7/_weakref.pyi new file mode 100644 index 000000000..d2c457bde --- /dev/null +++ b/builtins/2.7/_weakref.pyi @@ -0,0 +1,16 @@ +from typing import Any, Callable + +class CallableProxyType(object): # "weakcallableproxy" + pass + +class ProxyType(object): # "weakproxy" + pass + +class ReferenceType(object): # "weakref" + pass + +ref = ReferenceType + +def getweakrefcount(object: Any) -> int: ... +def getweakrefs(object: Any) -> int: ... +def proxy(object: Any, callback: Callable[[Any], Any] = ...) -> None: ...