Skip to content

Completely type undocumented aliases for heap*_max functions in heapq #15667

@jonathandung

Description

@jonathandung

I only see an incomplete annotation for heapq._heapify_max, an alias for heapq.heapify_max for backwards compatibility since 3.14 and an internal helper before, in the heapq stub, whereas similar helpers _heappop_max and _heapreplace_max already existed before 3.14, and _heappush_max and _heappushpop_max were added in 3.14, presumably for consistency. All of the above are not mentioned in heapq.pyi. Since _heapify_max, technically undocumented, is already there, I see no reason to omit the others.

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