Skip to content

Is the start location of ExprKind::BoolOp correct? #4305

Closed
@harupy

Description

@harupy

In astral-sh/ruff#1009, I found the start location of ExprKind::BoolOp points to or or and.

Example:

foo or bar
    ^

foo and bar
    ^

# ^ represents the start location of this BoolOp expression

Is this intended? Should the start location point to foo in the example above?

foo or bar
^

foo and bar
^

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