mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #15582: inspect.getdoc() now follows inheritance chains.
This commit is contained in:
parent
41525e31a5
commit
5cf2b7253d
5 changed files with 112 additions and 3 deletions
|
|
@ -45,9 +45,16 @@ class StupidGit:
|
|||
self.ex = sys.exc_info()
|
||||
self.tr = inspect.trace()
|
||||
|
||||
def contradiction(self):
|
||||
'The automatic gainsaying.'
|
||||
pass
|
||||
|
||||
# line 48
|
||||
class MalodorousPervert(StupidGit):
|
||||
pass
|
||||
def abuse(self, a, b, c):
|
||||
pass
|
||||
def contradiction(self):
|
||||
pass
|
||||
|
||||
Tit = MalodorousPervert
|
||||
|
||||
|
|
@ -55,4 +62,7 @@ class ParrotDroppings:
|
|||
pass
|
||||
|
||||
class FesteringGob(MalodorousPervert, ParrotDroppings):
|
||||
pass
|
||||
def abuse(self, a, b, c):
|
||||
pass
|
||||
def contradiction(self):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue