aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorjack1142 <[email protected]>2020-08-30 04:22:45 +0200
committerRapptz <[email protected]>2020-12-18 21:18:57 -0500
commit15587eeef11c8e31ee1c3bd2886eb844dd98b09a (patch)
tree62c62f421c13081715d716e2dffeb89c3997d6ae /docs
parentFix collapsible sidebar not working (diff)
downloaddiscord.py-15587eeef11c8e31ee1c3bd2886eb844dd98b09a.tar.xz
discord.py-15587eeef11c8e31ee1c3bd2886eb844dd98b09a.zip
Another take at fixing methods showing up under "Attributes"
Diffstat (limited to 'docs')
-rw-r--r--docs/extensions/attributetable.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/extensions/attributetable.py b/docs/extensions/attributetable.py
index fde3252d..9af83981 100644
--- a/docs/extensions/attributetable.py
+++ b/docs/extensions/attributetable.py
@@ -183,7 +183,11 @@ def get_class_results(lookup, modulename, name, fullname):
badge = None
label = attr
- value = getattr(cls, attr, None)
+ for base in cls.__mro__:
+ value = base.__dict__.get(attr)
+ if value is not None:
+ break
+
if value is not None:
doc = value.__doc__ or ''
if inspect.iscoroutinefunction(value) or doc.startswith('|coro|'):