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

Class TestCLong

tests/test_traitlets.py:1443–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441
1442
1443class TestCLong(TraitTestBase):
1444 obj = CLongTrait()
1445
1446 _default_value = 5
1447 _good_values = ["10", "-10", 10, 10.0, -10.0, 10.1]
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 1

CLongTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…