mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 14:29:11 +00:00
Adopt PEP 484 type hints for C++ types exported to Python
This commit is contained in:
@@ -32,3 +32,5 @@ from example import selective_func
|
||||
selective_func(np.array([1], dtype=np.int32))
|
||||
selective_func(np.array([1.0], dtype=np.float32))
|
||||
selective_func(np.array([1.0j], dtype=np.complex64))
|
||||
|
||||
print(vectorized_func.__doc__)
|
||||
|
||||
Reference in New Issue
Block a user