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

Method parse

mitmproxy/types.py:433–437  ·  view source on GitHub ↗
(self, manager: "CommandManager", t: Choice, s: str)

Source from the content-addressed store, hash-verified

431 return manager.execute(t.options_command)
432
433 def parse(self, manager: "CommandManager", t: Choice, s: str) -> str:
434 opts = manager.execute(t.options_command)
435 if s not in opts:
436 raise ValueError("Invalid choice.")
437 return s
438
439 def is_valid(self, manager: "CommandManager", typ: Any, val: Any) -> bool:
440 try:

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected