1
0
forked from VimPlug/jedi

Try to re-implement reversed

This commit is contained in:
Dave Halter
2018-09-07 23:00:32 +02:00
parent 9e7879d43f
commit 91a18ec63c
4 changed files with 31 additions and 29 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ def py__mro__(context):
# TODO detect for TypeError: duplicate base class str,
# e.g. `class X(str, str): pass`
try:
mro_method = py__mro__(cls)
cls.py__bases__
except AttributeError:
# TODO add a TypeError like:
"""
@@ -99,7 +99,7 @@ def py__mro__(context):
debug.warning('Super class of %s is not a class: %s', context, cls)
else:
add(cls)
for cls_new in mro_method():
for cls_new in py__mro__(context):
add(cls_new)
return tuple(mro)