From: Ademola Date: Sat, 10 Aug 2019 14:12:02 +0000 (+0000) Subject: resolve cached_property docstring not showing X-Git-Tag: 1.5.2~23^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c97cf414254e2aed83417785b3890a4f2602ba81;p=cached-property.git resolve cached_property docstring not showing --- diff --git a/cached_property.py b/cached_property.py index 67fa01a..3e530fc 100644 --- a/cached_property.py +++ b/cached_property.py @@ -5,6 +5,7 @@ __email__ = "pydanny@gmail.com" __version__ = "1.5.1" __license__ = "BSD" +from functools import wraps from time import time import threading @@ -36,6 +37,7 @@ class cached_property(object): return value def _wrap_in_coroutine(self, obj): + @wraps(obj) @asyncio.coroutine def wrapper(): future = asyncio.ensure_future(self.func(obj))