diff --git a/lib/tfw/decorators/lazy_property.py b/lib/tfw/decorators/lazy_property.py index 80ddbeb..c7e00c6 100644 --- a/lib/tfw/decorators/lazy_property.py +++ b/lib/tfw/decorators/lazy_property.py @@ -1,6 +1,8 @@ # Copyright (C) 2018 Avatao.com Innovative Learning Kft. # All Rights Reserved. See LICENSE file for details. +from functools import update_wrapper + class lazy_property: """ @@ -9,7 +11,7 @@ class lazy_property: """ def __init__(self, func): self.func = func - self.__doc__ = func.__doc__ + update_wrapper(self, func) def __get__(self, instance, owner): if instance is None: