google / google/yapf

can't format `dict[str, Any]`

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

Description

Can't format scripts below.
The error is 'IndexError: tuple index out of range'.

```python
from typing import Any, Callable

type Data = dict[str, Any]
```

python version: 3.13.3
operating system: windows 10
yapf version: 0.43.0

Thank you.

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.