[ty] Detect generic Callables in function signatures by dcreager · Pull Request #22954 · astral-sh/ruff (original) (raw)

@dcreager dcreager added the ty

Multi-file analysis & type inference

label

Jan 29, 2026

dcreager

@dcreager

@dcreager

AlexWaygood

@dcreager

@dcreager

@dcreager dcreager deleted the dcreager/callable-genctx branch

February 4, 2026 01:41

carljm pushed a commit that referenced this pull request

Feb 10, 2026

@claude

…ParamSpec+Concatenate

Bisected the issue to commit 4f684db ([ty] Detect generic Callables in function signatures #22954). The heuristic for detecting generic Callables in return position incorrectly interacts with ParamSpec + Concatenate patterns used in decorators like hypothesis.composite.

https://claude.ai/code/session_01MiAwMHE7cSZFmdRugzFrE2

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