Skip to content

Use Literal for statistics.quantiles() #7462

Closed
@rhettinger

Description

@rhettinger

Replace method: str with method: Literal["inclusive", "exclusive"].

See:

def quantiles(data: Iterable[_NumberT], *, n: int = ..., method: str = ...) -> list[_NumberT]: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions