mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-04 05:31:38 +00:00
Add syntax sugar for resolving overloaded functions (#541)
This commit is contained in:
committed by
Wenzel Jakob
parent
ae185b7f19
commit
4e959c9af4
@@ -14,6 +14,9 @@ def test_function_overloading():
|
||||
assert test_function(MyEnum.EFirstEntry) == "test_function(enum=1)"
|
||||
assert test_function(MyEnum.ESecondEntry) == "test_function(enum=2)"
|
||||
|
||||
assert test_function(1, 1.0) == "test_function(int, float)"
|
||||
assert test_function(2.0, 2) == "test_function(float, int)"
|
||||
|
||||
|
||||
def test_bytes():
|
||||
from pybind11_tests import return_bytes, print_bytes
|
||||
|
||||
Reference in New Issue
Block a user