Revert "Remove redundant inheritances from Iterator in builtins" by cdce8p · Pull Request #18324 · python/mypy

@cdce8p

@cdce8p

@github-actions

This comment has been minimized.

svalentin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cdce8p

@github-actions

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/types/test_datetime.py:785: error: Argument 1 to "time" has incompatible type "*map[int]"; expected "tzinfo | None"  [arg-type]
+ tests/types/test_datetime.py:807: error: Argument 1 to "datetime" has incompatible type "*map[int]"; expected "tzinfo | None"  [arg-type]

jax (https://github.com/google/jax)
- jax/_src/numpy/linalg.py:2115: error: Unused "type: ignore" comment  [unused-ignore]

svalentin pushed a commit that referenced this pull request

Dec 30, 2024

@cdce8p cdce8p deleted the revert-typeshed-iterator-change branch

December 30, 2024 14:30