From a61a25f1393a7d2474c397d819137251c0c4325f Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 12 Mar 2026 22:49:35 +0000 Subject: [PATCH] fix(deltachat_rpc_client): make `@futuremethod` decorator keep method metadata Without this change methods decorated with `@futuremethod` do not appear in the documentation. --- deltachat-rpc-client/src/deltachat_rpc_client/_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py index 86c23d153..8f0f83488 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py @@ -1,4 +1,5 @@ import argparse +import functools import os import re import sys @@ -186,6 +187,7 @@ 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):