| 1665 | |
| 1666 | |
| 1667 | class TestSet(TraitTestBase): |
| 1668 | obj = SetTrait() |
| 1669 | |
| 1670 | _default_value: t.Set[str] = set() |
| 1671 | _good_values = [{"a", "b"}, "ab"] |
| 1672 | _bad_values = [1] |
| 1673 | |
| 1674 | def coerce(self, value): |
| 1675 | if isinstance(value, str): |
| 1676 | # compatibility handling: convert string to set containing string |
| 1677 | value = {value} |
| 1678 | return value |
| 1679 | |
| 1680 | |
| 1681 | class Foo: |
nothing calls this directly
no test coverage detected
searching dependent graphs…