mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Another take at fixing methods showing up under "Attributes"
This commit is contained in:
parent
39f1f9098e
commit
512d9aaccb
@ -183,7 +183,11 @@ def get_class_results(lookup, modulename, name, fullname):
|
|||||||
badge = None
|
badge = None
|
||||||
label = attr
|
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:
|
if value is not None:
|
||||||
doc = value.__doc__ or ''
|
doc = value.__doc__ or ''
|
||||||
if inspect.iscoroutinefunction(value) or doc.startswith('|coro|'):
|
if inspect.iscoroutinefunction(value) or doc.startswith('|coro|'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user