Skip to content

_ is highlighted as readonly  #139

@DetachHead

Description

@DetachHead

this is because the logic checks if it's uppercase by making sure there are no lowercase characters in the name (which is usually correct, variables like _1 are treated as Final by pyright. whether or not that's https://github.com/DetachHead/basedpyright/labels/as%20designed is another discussion).

however _ is special-cased to allow reassignment:
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions