pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
707 stars 87 forks source link

goto_definitions don't work for super() in multiple inheritance class #346

Closed siteshen closed 5 years ago

siteshen commented 5 years ago
#!/usr/bin/env python3

class Mixin:
    def say_mixin(self):
        pass

class Base:
    def say_base(self):
        pass

class User(Mixin, Base):
    def say(self):
        super().say_mixin()
        super().say_base()

goto_definitions works for super().say_mixin(), but not for super().say_base().

beyondpie commented 5 years ago

yes, I also face the same problem. It seems that super() only works for the first super class.

proofit404 commented 5 years ago

Please, report this bug to https://github.com/davidhalter/jedi.