Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: messed links when class definition takes several lines (python) #25

Open
vvch opened this issue Feb 3, 2019 · 1 comment
Open

Comments

@vvch
Copy link

vvch commented Feb 3, 2019

When class definition takes more than one string, all following links in outline tab are shifted, e. g. in this example method1 in outline tab jumps to func1, and method2 jumps to nowhere:

class MyTuple(namedtuple("MyTuple", """
    field1 field2 field3
"""):
    def method1():
        pass
    def method2():
        pass
def func1():
    pass
@warmdev
Copy link
Owner

warmdev commented Feb 13, 2019

I think the best solution is probably to remove any new lines in class definitions. Will see how it can be done. Thank you for reporting the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants