[ty] Add support for typing.Concatenate by dhruvmanila · Pull Request #23689 · astral-sh/ruff (original) (raw)

@dhruvmanila added the ty

Multi-file analysis & type inference

label

Mar 3, 2026

@dhruvmanila dhruvmanila changed the base branch from main to dhruv/paramspec-relation-check

March 16, 2026 11:41

Base automatically changed from dhruv/paramspec-relation-check to main

March 17, 2026 02:54

dhruvmanila added a commit that referenced this pull request

Mar 17, 2026

@dhruvmanila

…23927)

Summary

This PR updates the constraint set assignability check to only special case overloaded callables against a callable containing ParamSpec and pass through any other callables to the check in Signature. This is to make sure for Concatenate (ref #23689) that we make sure that it goes through to Signature where the type checking / constraint set building would take place.

Here are the detailed list of changes:

In check_callable_signature_pair_inner,

In check_signature_pair_inner,

Test Plan

Make sure there are no regression and existing test cases pass.

I'm also working on top of this branch in #23689 to make sure these changes are valid, so far so good.

@dhruvmanila @choucavalier

Co-authored-by: Valentin Iovene val@physight.com

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

dhruvmanila

dhruvmanila

@dhruvmanila

dhruvmanila

@dhruvmanila

dhruvmanila

@carljm carljm removed their request for review

March 23, 2026 21:12

dcreager

AlexWaygood

@dhruvmanila

@dhruvmanila

@dhruvmanila

@dhruvmanila

carljm added a commit that referenced this pull request

Mar 25, 2026

@carljm

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})