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 propagated Any constraint #12548

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

A5rocks
Copy link
Contributor

@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