diff options
| author | jack1142 <[email protected]> | 2020-08-30 04:22:45 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-29 22:22:45 -0400 |
| commit | 512d9aaccb7b17b2d52cea17c9d020e4966d5f4e (patch) | |
| tree | c6d13bb053d04242a47ed24738d6d7321f531b57 /docs | |
| parent | Fix collapsible sidebar not working (diff) | |
| download | discord.py-512d9aaccb7b17b2d52cea17c9d020e4966d5f4e.tar.xz discord.py-512d9aaccb7b17b2d52cea17c9d020e4966d5f4e.zip | |
Another take at fixing methods showing up under "Attributes"
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/extensions/attributetable.py | 6 |
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|'): |