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

Class TestList

tests/test_traitlets.py:1650–1660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648
1649
1650class TestList(TraitTestBase):
1651 obj = ListTrait()
1652
1653 _default_value: t.List[t.Any] = []
1654 _good_values = [[], [1], list(range(10)), (1, 2)]
1655 _bad_values = [10, [1, "a"], "a"]
1656
1657 def coerce(self, value):
1658 if value is not None:
1659 value = list(value)
1660 return value
1661
1662
1663class SetTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

ListTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…