KEMBAR78
Use type variable bound to infer constraints by JukkaL · Pull Request #12230 · python/mypy · GitHub
Skip to content

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