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

Function test_override_default

tests/test_traitlets.py:2849–2858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2847
2848
2849def test_override_default():
2850 class C(HasTraits):
2851 a = Unicode("hard default")
2852
2853 def _a_default(self):
2854 return "default method"
2855
2856 C._a_default = lambda self: "overridden" # type:ignore
2857 c = C()
2858 assert c.a == "overridden"
2859
2860
2861def test_override_default_decorator():

Callers

nothing calls this directly

Calls 1

CClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…