mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-21 02:22:07 +08:00
add _weakref.pyi
This commit is contained in:
16
builtins/2.7/_weakref.pyi
Normal file
16
builtins/2.7/_weakref.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user