Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/idank/explainshell
/ __next__
Method
__next__
explainshell/util.py:57–64 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
55
return
self
56
57
def
__next__(self):
58
if
self._peeked:
59
self._peeked = False
60
self._idx += 1
61
return
self._peek_value
62
n = next(self.it)
63
self._idx += 1
64
return
n
65
66
def
has_next(self):
67
try
:
Callers
nothing calls this directly
Calls
1
next
Function · 0.50
Tested by
no test coverage detected