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

Function test_dict_assignment

tests/test_traitlets.py:1883–1889  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1881
1882
1883def test_dict_assignment():
1884 d: t.Dict[str, int] = {}
1885 c = DictTrait()
1886 c.value = d
1887 d["a"] = 5
1888 assert d == c.value
1889 assert c.value is d
1890
1891
1892class UniformlyValueValidatedDictTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

DictTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…