mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 15:54:12 +00:00
type_caster<std::function>: allow None values in both directions
This commit is contained in:
@@ -68,6 +68,8 @@ from example import roundtrip
|
||||
|
||||
test_dummy_function(dummy_function)
|
||||
test_dummy_function(roundtrip(dummy_function))
|
||||
if roundtrip(None) is not None:
|
||||
print("Problem!")
|
||||
test_dummy_function(lambda x: x + 2)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user