Skip to content

Commit 3e5462e

Browse files
committed
fixed #739 : copy function documentation in lazy_attribute.__init__()
1 parent 5f56ef3 commit 3e5462e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

larray/util/misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ class lazy_attribute(object):
697697
"""
698698
def __init__(self, func):
699699
self.func = func
700+
self.__doc__ = self.func.__doc__
700701

701702
# descriptor protocol
702703
# see https://docs.python.org/3/reference/datamodel.html#implementing-descriptors

0 commit comments

Comments
 (0)