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

Class TestFloat

tests/test_traitlets.py:1506–1525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504
1505
1506class TestFloat(TraitTestBase):
1507 obj = FloatTrait()
1508
1509 _default_value = 99.0
1510 _good_values = [10, -10, 10.1, -10.1]
1511 _bad_values = [
1512 "ten",
1513 [10],
1514 {"ten": 10},
1515 (10,),
1516 None,
1517 1j,
1518 "10",
1519 "-10",
1520 "10L",
1521 "-10L",
1522 "10.1",
1523 "-10.1",
1524 201.0,
1525 ]
1526
1527
1528class CFloatTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

FloatTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…