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

Class AnextOnly

Lib/test/test_collections.py:963–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 self.assertNotIsSubclass(type(x), AsyncIterator)
962 # Similarly to regular iterators (see issue 10565)
963 class AnextOnly:
964 async def __anext__(self):
965 raise StopAsyncIteration
966 self.assertNotIsInstance(AnextOnly(), AsyncIterator)
967 self.validate_abstract_methods(AsyncIterator, '__anext__')
968

Callers 1

test_AsyncIteratorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_AsyncIteratorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…