KEMBAR78
Fix propagated Any constraint by A5rocks · Pull Request #12548 · python/mypy · GitHub
Skip to content

Conversation

A5rocks
Copy link
Collaborator

@A5rocks A5rocks commented Apr 8, 2022

Description

Fixes #12542

This allows parameters to constrain to Any. Likely a more general solution would be allowing constraints but I'm not exactly sure of the wanted behavior here so I left in the error (to collect more samples if they exist -- failing loudly).

Test Plan

Added crashing case (in a minimal format)

@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@cdce8p cdce8p mentioned this pull request Apr 13, 2022
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

"Parameters cannot be constrained" with generic ParamSpec

2 participants