Skip to content

Consider undeclared use of _ dead variable #1999

Open
@rebcabin

Description

@rebcabin

Perhaps the following is preferable:

    for _ in range(10):
        t = get_non_white(lexer)
        assert t == EOF_SIGNAL

to this, which is currently required:

    _ : i32
    for _ in range(10):
        t = get_non_white(lexer)
        assert t == EOF_SIGNAL

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions