mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-30 00:47:12 +00:00
17 lines
275 B
Python
17 lines
275 B
Python
|
import trampoline_module
|
||
|
|
||
|
|
||
|
def func():
|
||
|
class Test(trampoline_module.test_override_cache_helper):
|
||
|
def func(self):
|
||
|
return 42
|
||
|
|
||
|
return Test()
|
||
|
|
||
|
|
||
|
def func2():
|
||
|
class Test(trampoline_module.test_override_cache_helper):
|
||
|
pass
|
||
|
|
||
|
return Test()
|