MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / _get

Method _get

mitmproxy/tools/console/flowlist.py:72–75  ·  view source on GitHub ↗
(self, pos: int)

Source from the content-addressed store, hash-verified

70
71 @lru_cache(maxsize=None)
72 def _get(self, pos: int) -> tuple[FlowItem | None, int | None]:
73 if not self.master.view.inbounds(pos):
74 return None, None
75 return FlowItem(self.master, self.master.view[pos]), pos
76
77 def get_next(self, pos):
78 return self._get(pos + 1)

Callers 2

get_nextMethod · 0.95
get_prevMethod · 0.95

Calls 2

FlowItemClass · 0.85
inboundsMethod · 0.80

Tested by

no test coverage detected