From bdc9e7ce5682ba63b69bb41844a5aa93a28869c6 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 16 Mar 2026 07:01:30 +0000 Subject: [PATCH] fix(deltachat_rpc_client): make sphinx documentation display method parameters --- deltachat-rpc-client/src/deltachat_rpc_client/_utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py index 8f0f83488..fffd18b60 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py @@ -187,13 +187,9 @@ class futuremethod: # noqa: N801 """Decorator for async methods.""" def __init__(self, func): - functools.update_wrapper(self, func) self._func = func def __get__(self, instance, owner=None): - if instance is None: - return self - def future(*args): generator = self._func(instance, *args) res = next(generator) @@ -206,6 +202,7 @@ class futuremethod: # noqa: N801 return f + @functools.wraps(self._func) def wrapper(*args): f = future(*args) return f()