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

Class TestCInt

tests/test_traitlets.py:1364–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362
1363
1364class TestCInt(TraitTestBase):
1365 obj = CIntTrait()
1366
1367 _default_value = 5
1368 _good_values = ["10", "-10", 10, 10.0, -10.0, 10.1]
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 1

CIntTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…