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

Method __deepcopy__

mitmproxy/optmanager.py:79–83  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

77 return True
78
79 def __deepcopy__(self, _):
80 o = _Option(self.name, self.typespec, self.default, self.help, self.choices)
81 if self.has_changed():
82 o.value = self.current()
83 return o
84
85
86@dataclass

Callers

nothing calls this directly

Calls 3

has_changedMethod · 0.95
currentMethod · 0.95
_OptionClass · 0.85

Tested by

no test coverage detected