fix(deltachat_rpc_client): make @futuremethod decorator keep method metadata

Without this change methods decorated with `@futuremethod`
do not appear in the documentation.
This commit is contained in:
link2xt
2026-03-12 22:49:35 +00:00
committed by l
parent 5404e683eb
commit a61a25f139

View File

@@ -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):