MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/unittest/mock.py:3186–3190  ·  view source on GitHub ↗
(self, iterator)

Source from the content-addressed store, hash-verified

3184 Wraps an iterator in an asynchronous iterator.
3185 """
3186 def __init__(self, iterator):
3187 self.iterator = iterator
3188 code_mock = NonCallableMock(spec_set=CodeType)
3189 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE
3190 self.__dict__['__code__'] = code_mock
3191
3192 async def __anext__(self):
3193 try:

Callers

nothing calls this directly

Calls 1

NonCallableMockClass · 0.85

Tested by

no test coverage detected