mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
22 lines
359 B
Python
22 lines
359 B
Python
from functools import wraps
|
|
import inspect
|
|
|
|
|
|
class Route:
|
|
def __init__(self, input_a: int, input_b: float):
|
|
...
|
|
|
|
|
|
class Router:
|
|
def __init__(self):
|
|
self.routes = []
|
|
|
|
@wraps(Route.__init__)
|
|
def route(self, *args, **kwargs):
|
|
route = Route(*args, **kwargs)
|
|
self.routes.append(route)
|
|
|
|
|
|
r = Router()
|
|
r.route(<arg1>)
|