MCPcopy Create free account
hub / github.com/ipython/traitlets / MyClass

Class MyClass

tests/test_traitlets.py:2165–2171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2163
2164 def test_link_broken_at_source(self):
2165 class MyClass(HasTraits):
2166 i = Int()
2167 j = Int()
2168
2169 @observe("j")
2170 def another_update(self, change):
2171 self.i = change.new * 2
2172
2173 mc = MyClass()
2174 l = link((mc, "i"), (mc, "j")) # noqa: E741

Callers 2

Calls 1

IntClass · 0.90

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…