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

Method coerce

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

Source from the content-addressed store, hash-verified

1448 _bad_values = ["ten", [10], {"ten": 10}, (10,), None, 1j, "10.1"]
1449
1450 def coerce(self, n):
1451 return int(n)
1452
1453
1454class MaxBoundCLongTrait(HasTraits):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected