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

Class TestComplex

tests/test_traitlets.py:1547–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1545
1546
1547class TestComplex(TraitTestBase):
1548 obj = ComplexTrait()
1549
1550 _default_value = 99.0 - 99.0j
1551 _good_values = [
1552 10,
1553 -10,
1554 10.1,
1555 -10.1,
1556 10j,
1557 10 + 10j,
1558 10 - 10j,
1559 10.1j,
1560 10.1 + 10.1j,
1561 10.1 - 10.1j,
1562 ]
1563 _bad_values = ["10L", "-10L", "ten", [10], {"ten": 10}, (10,), None]
1564
1565
1566class BytesTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

ComplexTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…