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

Method __complex__

tests/test_builtin_casters.py:488–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected