Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_cast
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_complex_cast
Function · 0.68