Skip to content

Order stub overloads the way a type checker reads them #25

Closed

Description

@b-re-w

mypy takes the first matching @overload, so tools/gen_stubs.py must emit an overload set fewest parameters first, ties in table order (the order the binder's dispatcher tries them). Source: python-multiplatform docs/archive/pyi-generation-pythonic-stubs.md §3.6, relayed by the ecosystem lead. Done when a test pins the order and fails without the sort.

Activity

  1. b-re-w commented on Oct 2, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions