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

Class TransitionalClass

tests/test_traitlets.py:2635–2660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2633
2634
2635class TransitionalClass(HasTraits):
2636 d = Any()
2637
2638 @default("d")
2639 def _d_default(self):
2640 return TransitionalClass
2641
2642 parent_super = False
2643 calls_super = Integer(0)
2644
2645 @default("calls_super")
2646 def _calls_super_default(self):
2647 return -1
2648
2649 @observe("calls_super")
2650 @observe_compat
2651 def _calls_super_changed(self, change):
2652 self.parent_super = change
2653
2654 parent_override = False
2655 overrides = Integer(0)
2656
2657 @observe("overrides")
2658 @observe_compat
2659 def _overrides_changed(self, change):
2660 self.parent_override = change
2661
2662
2663class SubClass(TransitionalClass):

Callers

nothing calls this directly

Calls 1

AnyClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…