MCPcopy Index your code
hub / github.com/ipython/ipython / _is_iterator

Function _is_iterator

IPython/core/completer.py:713–715  ·  view source on GitHub ↗

Determines whether objects is sizable

(value: Any)

Source from the content-addressed store, hash-verified

711
712
713def _is_iterator(value: Any) -> TypeGuard[Iterator]:
714 """Determines whether objects is sizable"""
715 return hasattr(value, "__next__")
716
717
718def has_any_completions(result: MatcherResult) -> bool:

Callers 1

has_any_completionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…