mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
19 lines
300 B
Python
19 lines
300 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
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()
|