MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / next

Function next

pymongo/synchronous/helpers.py:142–144  ·  view source on GitHub ↗

Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next.

(cls: Any)

Source from the content-addressed store, hash-verified

140else:
141
142 def next(cls: Any) -> Any:
143 """Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""
144 return cls.__next__()
145
146 def iter(cls: Any) -> Any:
147 """Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#next."""

Callers 15

get_versionMethod · 0.90
create_resourceMethod · 0.90
test_iteratorMethod · 0.90
test_find_commandMethod · 0.90
test_cursor_collationMethod · 0.90
test_change_streamsMethod · 0.90
_test_find_optionsMethod · 0.90
test_get_more_failureMethod · 0.90

Calls 1

__next__Method · 0.45

Tested by 15

create_resourceMethod · 0.72
test_iteratorMethod · 0.72
test_find_commandMethod · 0.72
test_cursor_collationMethod · 0.72
test_change_streamsMethod · 0.72
_test_find_optionsMethod · 0.72
test_get_more_failureMethod · 0.72
test_exhaustMethod · 0.72
test_kill_cursorsMethod · 0.72