mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
268 B
Python
16 lines
268 B
Python
import functools
|
|
|
|
|
|
class MyClass:
|
|
def foo(self, s: str, i: int):
|
|
pass
|
|
|
|
class Route:
|
|
@functools.wraps(MyClass.foo)
|
|
def __init__(self):
|
|
pass
|
|
|
|
class Router:
|
|
@functools.wraps(wrapped=Route.__init__)
|
|
def route(self, s: str):
|
|
pass |