blueloveTH 2 lat temu
rodzic
commit
0c8a6cb91a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      python/builtins.py

+ 2 - 0
python/builtins.py

@@ -183,6 +183,8 @@ class property:
     def __init__(self, fget, fset=None):
         self.fget = fget
         self.fset = fset
+        if '__doc__' in fget.__dict__:
+            self.__doc__ = fget.__dict__['__doc__']
 
     def __get__(self, obj):
         return self.fget(obj)