Skip to content

Comments

[ty] Support overloaded callables in ParamSpec sub-call evaluation#22692

Closed
charliermarsh wants to merge 1 commit intomainfrom
charlie/param-call
Closed

[ty] Support overloaded callables in ParamSpec sub-call evaluation#22692
charliermarsh wants to merge 1 commit intomainfrom
charlie/param-call

Conversation

@charliermarsh
Copy link
Member

Summary

Previously, when an overloaded function was passed to a function using ParamSpec (like asyncio.to_thread()), ty would fail to perform overload resolution and emit spurious invalid-argument-type errors.

Closes astral-sh/ty#1838.

@charliermarsh charliermarsh added bug Something isn't working ty Multi-file analysis & type inference labels Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve ParamSpec with the matching overload

1 participant