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 inferring constraints from param spec callable against Any #11725

Merged
merged 1 commit into from Dec 15, 2021

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 13, 2021

We didn't infer constraints from the return type.

Fixes #11704.

We didn't infer constraints from the return type.

Fixes #11704.
@github-actions
Copy link

github-actions bot commented Dec 13, 2021

Diff from mypy_primer, showing the effect of this PR on open source code:

steam.py (https://github.com/Gobot1234/steam.py)
- steam/models.py:123: error: Need type annotation for "coro"  [var-annotated]

@JukkaL JukkaL changed the title Fix inferring constrainta from param spec callable against Any Fix inferring constraints from param spec callable against Any Dec 15, 2021
@jhance
Copy link
Collaborator

jhance commented Dec 15, 2021

Looks good

@JukkaL JukkaL merged commit 22ab84a into master Dec 15, 2021
14 checks passed
@JukkaL JukkaL deleted the paramspec-special-case branch Dec 15, 2021
tushar-deepsource pushed a commit to deepsourcelabs/mypy that referenced this issue Jan 20, 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.

2 participants