MCPcopy
hub / github.com/mitmproxy/mitmproxy / get

Method get

mitmproxy/tools/console/keymap.py:137–140  ·  view source on GitHub ↗
(self, context: str, key: str)

Source from the content-addressed store, hash-verified

135 self._on_change()
136
137 def get(self, context: str, key: str) -> Binding | None:
138 if context in self.keys:
139 return self.keys[context].get(key, None)
140 return None
141
142 @cache
143 def binding_for_help(self, help: str) -> Binding | None:

Callers 15

test_bindFunction · 0.95
test_joinFunction · 0.95
test_load_pathFunction · 0.95
removeMethod · 0.95
handleMethod · 0.95
handle_onlyMethod · 0.95
redrawMethod · 0.45
bodyviewMethod · 0.45
edit_focusMethod · 0.45
get_editorMethod · 0.45
spawn_external_viewerMethod · 0.45
load_pathMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_bindFunction · 0.76
test_joinFunction · 0.76
test_load_pathFunction · 0.76