MCPcopy
hub / github.com/mitmproxy/mitmproxy / current

Method current

mitmproxy/optmanager.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 return copy.deepcopy(self._default)
55
56 def current(self) -> Any:
57 if self.value is unset:
58 v = self.default
59 else:
60 v = self.value
61 return copy.deepcopy(v)
62
63 def set(self, value: Any) -> None:
64 typecheck.check_option_type(self.name, value, self.typespec)

Callers 7

__repr__Method · 0.95
has_changedMethod · 0.95
__deepcopy__Method · 0.95
test_optionFunction · 0.45
__getattr__Method · 0.45
_parse_setvalMethod · 0.45
dump_dictsFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_optionFunction · 0.36