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

Class AnextOnly

Lib/test/test_collections.py:962–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_AsyncIteratorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_AsyncIteratorMethod · 0.68