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

Class TestLenList

tests/test_traitlets.py:1737–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735
1736
1737class TestLenList(TraitTestBase):
1738 obj = LenListTrait()
1739
1740 _default_value = [0]
1741 _good_values = [[1], [1, 2], (1, 2)]
1742 _bad_values = [10, [1, "a"], "a", [], list(range(3))]
1743
1744 def coerce(self, value):
1745 if value is not None:
1746 value = list(value)
1747 return value
1748
1749
1750class TupleTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

LenListTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…