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

"Improve handling of overloads with ParamSpec" #2

Closed
wants to merge 1 commit into from

Conversation

AlexWaygood
Copy link
Owner

Description

Fixes python#12922 (a crash report).

Mypy's logic for overlapping overloads currently doesn't account for the existence of ParamSpecs. This PR fixes that.

Test Plan

I added a test that ensures that the crash report in python#12922 is fixed, and that ensures that basic type inference works as expected.
I'm not 100% confident I've covered all edge cases, but I think this is better than the status quo, anyway.

@AlexWaygood AlexWaygood closed this Jun 7, 2022
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.

Crash involving ParamSpec, Concatenate and overloads
1 participant