We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30d833 commit bdc9e7cCopy full SHA for bdc9e7c
1 file changed
deltachat-rpc-client/src/deltachat_rpc_client/_utils.py
@@ -187,13 +187,9 @@ class futuremethod: # noqa: N801
187
"""Decorator for async methods."""
188
189
def __init__(self, func):
190
- functools.update_wrapper(self, func)
191
self._func = func
192
193
def __get__(self, instance, owner=None):
194
- if instance is None:
195
- return self
196
-
197
def future(*args):
198
generator = self._func(instance, *args)
199
res = next(generator)
@@ -206,6 +202,7 @@ def f():
206
202
207
203
return f
208
204
205
+ @functools.wraps(self._func)
209
def wrapper(*args):
210
f = future(*args)
211
return f()
0 commit comments