Update README.md
[cached-property.git] / cached_property.py
index 67fa01a0de281029677b7a571338c3afa20b26fc..3135871bfb0d9cda0a4c4eac6cdf8c47d890a289 100644 (file)
@@ -2,9 +2,10 @@
 
 __author__ = "Daniel Greenfeld"
 __email__ = "pydanny@gmail.com"
-__version__ = "1.5.1"
+__version__ = "1.5.2"
 __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))