Files
typeshed/stdlib/2.7/weakref.pyi
Ben Darnell 2ddbf901c9 2.7 stub updates (#149)
* Stubgen modules for 2.7

Cookie
email._parseaddr
email.utils
genericpath
linecache
mimetypes
multiprocessing
multiprocessing.process
multiprocessing.util
posixpath
quopri
runpy
weakref
wsgiref.validate

* 2.7/typing.py: add missing __contains__ definition

* 2.7/subprocess.py: make output argument to CalledProcessError optional

Commit f08160bd did the same for py3.

* 2.7/hmac.pyi: add compare_digest

This function was introduced to the 2.7 series in 2.7.7.

* Stubgen 2.7/ssl.pyi

This replaces a nearly-empty handwritten stub.

* Copy constants and other definitions from py3 to py2 ssl.pyi

* 2.7/__future__.pyi: add methods

* 2.7/_weakref.pyi: backport some definitions from 3.x version

* Stubgen 2.7/locale.pyi

Hand-edited to remove declarations that are redundant (and cause
conflicts with) the "from _locale import *" line.
2016-04-17 19:02:55 -07:00

67 lines
2.2 KiB
Python

# Stubs for weakref (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import UserDict
from _weakref import getweakrefcount as getweakrefcount, getweakrefs as getweakrefs, ref as ref, proxy as proxy, CallableProxyType as CallableProxyType, ProxyType as ProxyType, ReferenceType as ReferenceType
from _weakrefset import WeakSet as WeakSet
from exceptions import ReferenceError as ReferenceError
ProxyTypes = ... # type: Any
class WeakValueDictionary(UserDict.UserDict):
def __init__(self, *args, **kw): ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __contains__(self, key): ...
def has_key(self, key): ...
def __setitem__(self, key, value): ...
def clear(self): ...
def copy(self): ...
__copy__ = ... # type: Any
def __deepcopy__(self, memo): ...
def get(self, key, default=None): ...
def items(self): ...
def iteritems(self): ...
def iterkeys(self): ...
__iter__ = ... # type: Any
def itervaluerefs(self): ...
def itervalues(self): ...
def popitem(self): ...
def pop(self, key, *args): ...
def setdefault(self, key, default=None): ...
def update(self, dict=None, **kwargs): ...
def valuerefs(self): ...
def values(self): ...
class KeyedRef(ReferenceType):
key = ... # type: Any
def __new__(type, ob, callback, key): ...
def __init__(self, ob, callback, key): ...
class WeakKeyDictionary(UserDict.UserDict):
data = ... # type: Any
def __init__(self, dict=None): ...
def __delitem__(self, key): ...
def __getitem__(self, key): ...
def __setitem__(self, key, value): ...
def copy(self): ...
__copy__ = ... # type: Any
def __deepcopy__(self, memo): ...
def get(self, key, default=None): ...
def has_key(self, key): ...
def __contains__(self, key): ...
def items(self): ...
def iteritems(self): ...
def iterkeyrefs(self): ...
def iterkeys(self): ...
__iter__ = ... # type: Any
def itervalues(self): ...
def keyrefs(self): ...
def keys(self): ...
def popitem(self): ...
def pop(self, key, *args): ...
def setdefault(self, key, default=None): ...
def update(self, dict=None, **kwargs): ...