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

Method coerce

tests/test_traitlets.py:1371–1372  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

1369 _bad_values = ["ten", [10], {"ten": 10}, (10,), None, 1j, "10.1"]
1370
1371 def coerce(self, n):
1372 return int(n)
1373
1374
1375class MinBoundCIntTrait(HasTraits):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected