MCPcopy
hub / github.com/mitmproxy/mitmproxy / Placeholder

Function Placeholder

test/mitmproxy/proxy/tutils.py:405–406  ·  view source on GitHub ↗
(cls: type[T] = Any)

Source from the content-addressed store, hash-verified

403
404# noinspection PyPep8Naming
405def Placeholder(cls: type[T] = Any) -> T | _Placeholder[T]:
406 return _Placeholder(cls)
407
408
409class _AnyStrPlaceholder(_Placeholder[AnyStr]):

Callers 15

test_upgradeFunction · 0.90
test_upgrade_streamedFunction · 0.90
test_close_normalFunction · 0.90
test_upstream_httpsFunction · 0.90
test_reverse_proxyFunction · 0.90
test_reverse_dnsFunction · 0.90
test_quicFunction · 0.90
test_udpFunction · 0.90
test_transparent_tcpFunction · 0.90
test_socks5_successFunction · 0.90

Calls 1

_PlaceholderClass · 0.85

Tested by 15

test_upgradeFunction · 0.72
test_upgrade_streamedFunction · 0.72
test_close_normalFunction · 0.72
test_upstream_httpsFunction · 0.72
test_reverse_proxyFunction · 0.72
test_reverse_dnsFunction · 0.72
test_quicFunction · 0.72
test_udpFunction · 0.72
test_transparent_tcpFunction · 0.72
test_socks5_successFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…