MCPcopy Create free account
hub / github.com/pybind/pybind11 / Complex

Class Complex

tests/test_builtin_casters.py:487–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 """std::complex casts"""
486
487 class Complex:
488 def __complex__(self) -> complex:
489 return complex(5, 4)
490
491 class Float:
492 def __float__(self) -> float:

Callers 1

test_complex_castFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_complex_castFunction · 0.68