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

Class Containers

tests/config/test_configurable.py:483–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482
483class Containers(Configurable):
484 lis = List().tag(config=True)
485
486 def _lis_default(self):
487 return [-1]
488
489 s = Set().tag(config=True)
490
491 def _s_default(self):
492 return {"a"}
493
494 d = Dict().tag(config=True)
495
496 def _d_default(self):
497 return {"a": "b"}
498
499
500class TestConfigContainers(TestCase):

Callers 9

test_extendMethod · 0.85
test_insertMethod · 0.85
test_prependMethod · 0.85
test_prepend_extendMethod · 0.85
test_append_extendMethod · 0.85
test_extend_appendMethod · 0.85
test_insert_extendMethod · 0.85
test_set_updateMethod · 0.85
test_dict_updateMethod · 0.85

Calls 4

ListClass · 0.90
SetClass · 0.90
DictClass · 0.90
tagMethod · 0.80

Tested by 9

test_extendMethod · 0.68
test_insertMethod · 0.68
test_prependMethod · 0.68
test_prepend_extendMethod · 0.68
test_append_extendMethod · 0.68
test_extend_appendMethod · 0.68
test_insert_extendMethod · 0.68
test_set_updateMethod · 0.68
test_dict_updateMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…