google / google/yapf

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

Open
#1,303 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

# 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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.