Skip to content

[Bug][Crash][Reproducible] IndexError: tuple index out of range #1303

@ArturBieniek4

Description

@ArturBieniek4

Problems

YAPF fails with IndexError: tuple index out of range while parsing a simple file

Reproduction

  • yapf==0.43.0
  • Put this in test.py: f"{tab["SOME_STRING"]}"
  • run yapf test.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions