SIGN IN SIGN UP

Pinpoint the first mismatched argument in bind-failure TypeErrors (#145)

* Pinpoint the first mismatched argument in bind-failure TypeErrors

When no overload matches a call, the TypeError now appends a diagnosis of
the first argument that fails to match the nearest overload (the one with
the most leading convertible arguments), e.g.:

  Argument mismatch: argument 3 ('asynchronous') expected bool, got str.

Keyword arguments whose values cannot convert to the matching parameter
are diagnosed too. The line is appended after the overloads hint so
consumers that extract the hint from its marker onwards keep it.

* Reuse Runtime.PyObject_GetTypeName in the bind-failure diagnosis

Drops the duplicated type-name helper in favor of the existing runtime
one, and tightens the new comments.
J
Jhonathan Abreu committed
ad87b8fa9735bd84b142e9b1e5d89cb82ae2a533
Parent: c080337
Committed by GitHub <noreply@github.com> on 8/12/2026, 8:32:22 PM