[ty] Substitute ParamSpec in overloaded functions by dhruvmanila · Pull Request #22416 · astral-sh/ruff (original) (raw)

@dhruvmanila added bug

Something isn't working

ty

Multi-file analysis & type inference

labels

Jan 6, 2026

@dhruvmanila

dcreager

dhruvmanila pushed a commit that referenced this pull request

Jan 7, 2026

@dcreager

@dhruvmanila encountered this in #22416 — there are two different TypeMapping variants for apply a specialization to a type. One operates on a full Specialization instance, the other on a partially constructed one. If we move this enum-ness "down a level" it reduces some copy/paste in places where we are operating on a TypeMapping.

@dhruvmanila

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 }})