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

Class C

tests/config/test_loader.py:249–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249class C(Configurable):
250 str_trait = Unicode(config=True)
251 int_trait = Integer(config=True)
252 list_trait = List(config=True)
253 list_of_ints = List(Integer(), config=True)
254 dict_trait = Dict(config=True)
255 dict_of_ints = Dict(
256 key_trait=Integer(),
257 value_trait=Integer(),
258 config=True,
259 )
260 dict_multi = Dict(
261 key_trait=Unicode(),
262 per_key_traits={
263 "int": Integer(),
264 "str": Unicode(),
265 },
266 config=True,
267 )
268
269
270class TestKeyValueCL(TestCase):

Callers 5

test_evalMethod · 0.70
test_list_appendMethod · 0.70
test_list_single_itemMethod · 0.70
test_dictMethod · 0.70
test_dict_key_traitsMethod · 0.70

Calls 3

UnicodeClass · 0.90
ListClass · 0.90
DictClass · 0.90

Tested by 5

test_evalMethod · 0.56
test_list_appendMethod · 0.56
test_list_single_itemMethod · 0.56
test_dictMethod · 0.56
test_dict_key_traitsMethod · 0.56