Sync with GitHub

This commit is contained in:
Andrey Vlasovskikh
2015-09-15 14:32:27 +03:00
parent 12deb145d3
commit b2451065c7
+46 -1
View File
@@ -1876,7 +1876,7 @@ class dict(object):
def __init__(self, iterable=None, **kwargs):
"""Create a dictionary object.
:type iterable: collections.Iterable[T, V]
:type iterable: collections.Iterable[(T, V)]
:rtype: dict[T, V]
"""
pass
@@ -2053,6 +2053,51 @@ class __generator(object):
pass
class __coroutine(object):
"""A mock class representing the generator function type."""
def __init__(self):
"""
:rtype: __coroutine[V]
"""
self.__name__ = ''
self.__qualname__ = ''
self.cr_await = None
self.cr_frame = None
self.cr_running = False
self.cr_code = None
def __await__(self):
"""
:rtype: __generator[unknown, unknown, V]
"""
return []
def __iter__(self):
"""
:rtype: collections.Iterable[unknown]
"""
return []
def close(self):
"""
:rtype: None
"""
pass
def send(self, value):
"""
:rtype: None
"""
pass
def throw(self, type, value=None, traceback=None):
"""
:rtype: None
"""
pass
class __function(object):
"""A mock class representing function type."""