Skip to content

N806 thinks a single _ is uppercase #560

@tgross35

Description

@tgross35

It looks like a single _ as a variable name gets considered uppercase for N806. I don't think this happens for names that start with an underscore, like _test

root@5d53afc0df87:/home# ruff test_n806.py --select N --no-cache
Found 1 error(s).
test_n806.py:3:8: N806 Variable `_` in function should be lowercase
def x():
    t = (1, 2)
    a, _ = t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions