MCPcopy Index your code
hub / github.com/bpython/bpython / current

Method current

bpython/repl.py:249–252  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

247 return self
248
249 def current(self) -> str:
250 if self.index == -1:
251 raise ValueError("No current match.")
252 return self.matches[self.index]
253
254 def __next__(self) -> str:
255 self.index = (self.index + 1) % len(self.matches)

Callers 2

cur_lineMethod · 0.95
test_currentMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_currentMethod · 0.64