mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
24 lines
403 B
Python
24 lines
403 B
Python
import functools
|
|
|
|
class Cls:
|
|
def foo(self, s: str, b: bool):
|
|
"""
|
|
Doc text
|
|
:param s: str
|
|
:param b: bool
|
|
:return: None
|
|
"""
|
|
pass
|
|
|
|
class Route:
|
|
@functools.wraps(Cls.foo)
|
|
def __init__(self):
|
|
pass
|
|
|
|
class Router:
|
|
@functools.wraps(wrapped=Route.__init__)
|
|
def route(self, s: str):
|
|
pass
|
|
|
|
r = Router()
|
|
r.<the_ref>route(13) |