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 minimized.

@github-actions
Copy link
Contributor

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

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