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

Class binder

test/mitmproxy/test_optmanager.py:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 assert len(o._subscriptions) == 0
182
183 class binder:
184 def __init__(self):
185 self.o = TO()
186 self.called = False
187 self.o.subscribe(self.bound, ["two"])
188
189 def bound(self, *args, **kwargs):
190 self.called = True
191
192 t = binder()
193 t.o.one = 3

Callers 1

test_subscribeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_subscribeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…