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

Use type variable bound to infer constraints #12230

Merged
merged 2 commits into from Feb 22, 2022
Merged

Use type variable bound to infer constraints #12230

merged 2 commits into from Feb 22, 2022

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 21, 2022

This fixes a regression where iter(x) could generate a false
positive if x has a type variable type with a bound.

This fixes a regression where `iter(x)` could generate a false
positive if `x` has a type variable type.
@github-actions

This comment has been hidden.

@github-actions
Copy link

@github-actions github-actions bot commented Feb 22, 2022

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

aioredis (https://github.com/aio-libs/aioredis)
+ aioredis/client.py:94: error: Unused "type: ignore" comment

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/arrays/sparse/array.py:776: error: Unused "type: ignore" comment

jhance
jhance approved these changes Feb 22, 2022
@JukkaL JukkaL merged commit 65ac270 into master Feb 22, 2022
15 checks passed
@JukkaL JukkaL deleted the mypy-regression-2 branch Feb 22, 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
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants