ruff/crates/ty_python_semantic/resources/mdtest/generics
Douglas Creager bdccb37b4a
[ty] Apply function specialization to all overloads (#18020)
Function literals have an optional specialization, which is applied to
the parameter/return type annotations lazily when the function's
signature is requested. We were previously only applying this
specialization to the final overload of an overloaded function.

This manifested most visibly for `list.__add__`, which has an overloaded
definition in the typeshed:


b398b83631/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi (L1069-L1072)

Closes https://github.com/astral-sh/ty/issues/314
2025-05-12 13:48:54 -04:00
..
legacy [ty] Apply function specialization to all overloads (#18020) 2025-05-12 13:48:54 -04:00
pep695 [ty] Apply function specialization to all overloads (#18020) 2025-05-12 13:48:54 -04:00
builtins.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
scoping.md ty_python_semantic: add union type context to function call type errors 2025-05-09 13:40:51 -04:00