Skip to content

Commit 4a6009a

Browse files
committed
fix: add functools.wraps to decorator for correct docs
1 parent 7f89e6d commit 4a6009a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AppDPyAPI/controller.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,15 @@ def get_application_decorated(application_name):
187187

188188
from inspect import signature
189189
from uritemplate import URITemplate
190+
from functools import wraps
190191

191192
def _inner_request_or_raise_decorator(
192193
func: Callable[[Any], Any]) -> Callable[[Any], str | list[dict[str, str]]]:
193194
"""Handles function."""
194195

195-
def __inner_request_or_raise_decorator(*args: list[Any]) -> str | list[dict[str, str]]:
196+
@wraps(func)
197+
def __inner_request_or_raise_decorator(*args: list[Any],
198+
**kwargs: dict[str, str]) -> str | list[dict[str, str]]:
196199
"""Handles arguments passed to function."""
197200
self: AppDController = args[0] # type: ignore
198201

0 commit comments

Comments
 (0)