Skip to content

BUG: breaking type annotation of format_percentiles function in io/formats/format.py #57248

Closed
@MarkBekooy

Description

@MarkBekooy

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

Open `io/formats/format.py` file and see that the following:

def format_percentiles(
    percentiles: (np.ndarray | Sequence[float]),
) -> list[str]:

Issue Description

The brackets of (np.ndarray | Sequence[float]) should be removed as they break the libcst parser and they are unneccesary

Expected Behavior

Removed brackets

Installed Versions

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions