Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ParamSpec inference for callback protocols #15986

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

ilevkivskyi
Copy link
Member

@ilevkivskyi ilevkivskyi commented Aug 29, 2023

Fixes #15984

Fix is straightforward, ParamSpec inference special-casing should put instances with __call__ and callable types on same ground.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit 0ae0c75 into python:master Aug 30, 2023
17 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-paramspec-inference branch August 30, 2023 12:27
koogoro pushed a commit that referenced this pull request Sep 2, 2023
Fixes #15984

Fix is straightforward, `ParamSpec` inference special-casing should put
instances with `__call__` and callable types on same ground.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ParamSpec doesn't handle out-of-order kwargs for callable protocol
3 participants