Skip to content

Commit bdc9e7c

Browse files
committed
fix(deltachat_rpc_client): make sphinx documentation display method parameters
1 parent e30d833 commit bdc9e7c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • deltachat-rpc-client/src/deltachat_rpc_client

deltachat-rpc-client/src/deltachat_rpc_client/_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,9 @@ class futuremethod: # noqa: N801
187187
"""Decorator for async methods."""
188188

189189
def __init__(self, func):
190-
functools.update_wrapper(self, func)
191190
self._func = func
192191

193192
def __get__(self, instance, owner=None):
194-
if instance is None:
195-
return self
196-
197193
def future(*args):
198194
generator = self._func(instance, *args)
199195
res = next(generator)
@@ -206,6 +202,7 @@ def f():
206202

207203
return f
208204

205+
@functools.wraps(self._func)
209206
def wrapper(*args):
210207
f = future(*args)
211208
return f()

0 commit comments

Comments
 (0)