Skip to content

can't format dict[str, Any] #1290

@fatsen

Description

@fatsen

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

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.

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