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

Class CommandParameter

mitmproxy/command.py:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53class CommandParameter(NamedTuple):
54 name: str
55 type: type
56 kind: inspect._ParameterKind = inspect.Parameter.POSITIONAL_OR_KEYWORD
57
58 def __str__(self):
59 if self.kind is inspect.Parameter.VAR_POSITIONAL:
60 return f"*{self.name}"
61 else:
62 return self.name
63
64
65class Command:

Callers 2

parametersMethod · 0.85
parse_partialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…