ruff/crates/ty_python_semantic
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
..
resources [ty] Apply function specialization to all overloads (#18020) 2025-05-12 13:48:54 -04:00
src [ty] Apply function specialization to all overloads (#18020) 2025-05-12 13:48:54 -04:00
tests Use #[expect(lint)] over #[allow(lint)] where possible (#17822) 2025-05-03 21:20:31 +02:00
build.rs
Cargo.toml
mdtest.py
mdtest.py.lock