MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

3191 Wraps an iterator in an asynchronous iterator.
3192 """
3193 def __init__(self, iterator):
3194 self.iterator = iterator
3195 code_mock = NonCallableMock(spec_set=CodeType)
3196 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE
3197 self.__dict__['__code__'] = code_mock
3198
3199 async def __anext__(self):
3200 try:

Callers

nothing calls this directly

Calls 1

NonCallableMockClass · 0.85

Tested by

no test coverage detected