Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

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

@jakebailey

Description

@jakebailey

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions