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

Method binding_for_help

mitmproxy/tools/console/keymap.py:143–147  ·  view source on GitHub ↗
(self, help: str)

Source from the content-addressed store, hash-verified

141
142 @cache
143 def binding_for_help(self, help: str) -> Binding | None:
144 for b in self.bindings:
145 if b.help == help:
146 return b
147 return None
148
149 def list(self, context: str) -> Sequence[Binding]:
150 b = [x for x in self.bindings if context in x.contexts or context == "all"]

Callers 3

test_make_rowsFunction · 0.95
test_quickhelpFunction · 0.80
_make_rowFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_make_rowsFunction · 0.76
test_quickhelpFunction · 0.64