add _weakref.pyi

This commit is contained in:
Matthias Kramm
2015-09-21 15:14:18 -07:00
parent 2adf05eec7
commit ce33a45411

16
builtins/2.7/_weakref.pyi Normal file
View File

@@ -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: ...