mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Sync with GitHub
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user