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

Method coerce

tests/test_traitlets.py:1589–1590  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

1587 _bad_values = [10, -10, 10.1, -10.1, 1j, [10], ["ten"], {"ten": 10}, (10,), None]
1588
1589 def coerce(self, v):
1590 return cast_unicode(v)
1591
1592
1593class ObjectNameTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

cast_unicodeFunction · 0.90

Tested by

no test coverage detected