github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/pybind11/tests/test_embed/test_trampoline.py (about)

     1  import trampoline_module
     2  
     3  
     4  def func():
     5      class Test(trampoline_module.test_override_cache_helper):
     6          def func(self):
     7              return 42
     8  
     9      return Test()
    10  
    11  
    12  def func2():
    13      class Test(trampoline_module.test_override_cache_helper):
    14          pass
    15  
    16      return Test()