resolve cached_property docstring not showing
authorAdemola <styccs@gmail.com>
Sat, 10 Aug 2019 14:12:02 +0000 (14:12 +0000)
committerAdemola <styccs@gmail.com>
Sat, 10 Aug 2019 15:35:36 +0000 (15:35 +0000)
cached_property.py

index 67fa01a0de281029677b7a571338c3afa20b26fc..3e530fc5f0320fcc6b3be4eb7e3ff31f8796c662 100644 (file)
@@ -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))