Issue #25503: Fixed inspect.getdoc() for inherited docstrings of properties.

Original patch by John Mark Vandenberg.
This commit is contained in:
Serhiy Storchaka 2015-10-29 08:15:50 +02:00
parent f8152c67f5
commit ac4bdcc80e
5 changed files with 19 additions and 9 deletions

View file

@ -45,14 +45,17 @@ class StupidGit:
self.ex = sys.exc_info()
self.tr = inspect.trace()
@property
def contradiction(self):
'The automatic gainsaying.'
pass
# line 48
# line 53
class MalodorousPervert(StupidGit):
def abuse(self, a, b, c):
pass
@property
def contradiction(self):
pass
@ -64,6 +67,8 @@ class ParrotDroppings:
class FesteringGob(MalodorousPervert, ParrotDroppings):
def abuse(self, a, b, c):
pass
@property
def contradiction(self):
pass