mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-08 15:29:45 +00:00
Adopt PEP 484 type hints for C++ types exported to Python
This commit is contained in:
@@ -6,7 +6,7 @@ Molly is a dog
|
||||
Molly is a dog
|
||||
Woof!
|
||||
The following error is expected: Incompatible function arguments. The following argument types are supported:
|
||||
1. (arg0: example.Dog) -> NoneType
|
||||
1. (arg0: example.Dog) -> None
|
||||
Invoked with: <example.Pet object at 0>
|
||||
Callback function 1 called!
|
||||
False
|
||||
@@ -36,3 +36,6 @@ could not convert to a function pointer.
|
||||
All OK!
|
||||
could not convert to a function pointer.
|
||||
All OK!
|
||||
|
||||
test_callback3(arg0: Callable[[int], int]) -> None
|
||||
test_callback4() -> Callable[[int], int]
|
||||
|
||||
Reference in New Issue
Block a user