mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #25503: Fixed inspect.getdoc() for inherited docstrings of properties.
Original patch by John Mark Vandenberg.
This commit is contained in:
parent
f8152c67f5
commit
ac4bdcc80e
5 changed files with 19 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue