Browse Source
Another take at fixing methods showing up under "Attributes"
pull/5778/head
jack1142
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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|'): |
|
|
|