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

Method get

mitmproxy/types.py:476–479  ·  view source on GitHub ↗
(self, t: type | None, default=None)

Source from the content-addressed store, hash-verified

474 self.typemap[t.typ] = t()
475
476 def get(self, t: type | None, default=None) -> _BaseType | None:
477 if type(t) in self.typemap:
478 return self.typemap[type(t)]
479 return self.typemap.get(t, default)
480
481
482CommandTypes = TypeManager(

Callers 15

wheelFunction · 0.45
versionFunction · 0.45
release.pyFile · 0.45
make_requestFunction · 0.45
test_simpleFunction · 0.45
test_typemanagerFunction · 0.45
test_addons_termlogMethod · 0.45
test_addons_dumperMethod · 0.45
test_statusbarFunction · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 15

make_requestFunction · 0.36
test_simpleFunction · 0.36
test_typemanagerFunction · 0.36
test_addons_termlogMethod · 0.36
test_addons_dumperMethod · 0.36
test_statusbarFunction · 0.36
__init__Method · 0.36
test_concurrentMethod · 0.36