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

Method coerce

tests/test_traitlets.py:1744–1747  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

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

no outgoing calls

Tested by

no test coverage detected