From c97cf414254e2aed83417785b3890a4f2602ba81 Mon Sep 17 00:00:00 2001 From: Ademola Date: Sat, 10 Aug 2019 14:12:02 +0000 Subject: [PATCH] resolve cached_property docstring not showing --- cached_property.py | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.30.2