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() |