| 1648 | |
| 1649 | |
| 1650 | class 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 | |
| 1663 | class SetTrait(HasTraits): |
nothing calls this directly
no test coverage detected
searching dependent graphs…