mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
This commit is contained in:
parent
82385460a0
commit
0c8a6cb91a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user