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

Class variables are not squiggled when used without class/self prefix #1431

Open
jakebailey opened this issue Aug 13, 2019 · 0 comments

Comments

@jakebailey
Copy link
Member

commented Aug 13, 2019

#1424 fixed completion, hover, and the analysis, but the undefined variable linter still thinks that the class variables are accessible.

class Foo():
    def __init__(self):
        self.instance_var = 123
        return

    def do(self):
        x = instance_var

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.