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

Class TestSet

tests/test_traitlets.py:1667–1678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665
1666
1667class 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
1681class Foo:

Callers

nothing calls this directly

Calls 1

SetTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…