projects
/
cached-property.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4cc28f
)
resolve cached_property docstring not showing
author
Ademola
<styccs@gmail.com>
Sat, 10 Aug 2019 14:12:02 +0000
(14:12 +0000)
committer
Ademola
<styccs@gmail.com>
Sat, 10 Aug 2019 15:35:36 +0000
(15:35 +0000)
cached_property.py
patch
|
blob
|
history
diff --git
a/cached_property.py
b/cached_property.py
index 67fa01a0de281029677b7a571338c3afa20b26fc..3e530fc5f0320fcc6b3be4eb7e3ff31f8796c662 100644
(file)
--- 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))