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

Function test_function_signatures

tests/test_callbacks.py:140–148  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

138
139
140def test_function_signatures(doc):
141 assert (
142 doc(m.test_callback3)
143 == "test_callback3(arg0: collections.abc.Callable[[typing.SupportsInt | typing.SupportsIndex], int]) -> str"
144 )
145 assert (
146 doc(m.test_callback4)
147 == "test_callback4() -> collections.abc.Callable[[typing.SupportsInt | typing.SupportsIndex], int]"
148 )
149
150
151def test_movable_object():

Callers

nothing calls this directly

Calls 1

docFunction · 0.70

Tested by

no test coverage detected