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

Method coerce

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

Source from the content-addressed store, hash-verified

1759 _bad_values = [10, (1, 2), ("a"), (), None]
1760
1761 def coerce(self, value):
1762 if value is not None:
1763 value = tuple(value)
1764 return value
1765
1766 def test_invalid_args(self):
1767 self.assertRaises(TypeError, Tuple, 5)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected