MCPcopy Index your code
hub / github.com/ipython/ipython / Okay

Class Okay

tests/test_hooks.py:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18# Define two classes, one which succeeds and one which raises TryNext. Each
19# sets the attribute `called` to True when it is called.
20class Okay(object):
21 def __init__(self, message):
22 self.message = message
23 self.called = False
24
25 def __call__(self):
26 self.called = True
27 return self.message
28
29
30class Fail(object):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…