CoatiSoftware / SourcetrailPythonIndexer

Python Indexer for Sourcetrail based on jedi, parso and SourcetrailDB
GNU General Public License v3.0
90 stars 28 forks source link

Unable to solve method calls for multiple inheritence if "super()" is used #30

Closed mlangkabel closed 5 years ago

mlangkabel commented 5 years ago

Consider the following code snippet:

class Foo:
  def foo(self):
    pass

class Bar:
  def bar(self):
    pass

class Baz(Foo, Bar):
  def baz(self):
    super().foo()
    super().bar()

Here the indexer is unable to solve the call to super().bar().

mlangkabel commented 5 years ago

Reported this issue on the Jedi tracker: https://github.com/davidhalter/jedi/issues/1311

mlangkabel commented 5 years ago

Fixed by merge of pull request #47.