Prevent crash on generic NamedTuple with unresolved typevar bound by sterliakov · Pull Request #18585 · python/mypy

@sterliakov

@sterliakov marked this pull request as ready for review

February 2, 2025 04:06

hauntsaninja

@sterliakov

@sterliakov

@hauntsaninja

JukkaL pushed a commit that referenced this pull request

Feb 3, 2025
This makes it more similar to the real typeshed. It is needed to
reproduce tricky failures in tests, e.g.
#18585. If this causes slower tests,
some tests may be switched to `tuple-simple.pyi`.

@sterliakov

@sterliakov

ilevkivskyi

wesleywright pushed a commit that referenced this pull request

Feb 4, 2025
This makes it more similar to the real typeshed. It is needed to
reproduce tricky failures in tests, e.g.
#18585. If this causes slower tests,
some tests may be switched to `tuple-simple.pyi`.

wesleywright pushed a commit that referenced this pull request

Feb 4, 2025
…8585)

Fixes #18582. Fixes #17396. Supersedes #18351.

---------

Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>

wesleywright pushed a commit that referenced this pull request

Feb 4, 2025
…8585)

Fixes #18582. Fixes #17396. Supersedes #18351.

---------

Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>

wesleywright pushed a commit that referenced this pull request

Feb 4, 2025
This makes it more similar to the real typeshed. It is needed to
reproduce tricky failures in tests, e.g.
#18585. If this causes slower tests,
some tests may be switched to `tuple-simple.pyi`.

ilevkivskyi added a commit that referenced this pull request

Feb 10, 2025
Removes todo added in #18585 - such normalization is not technically
correct when a tuple is used as a base class.

---------

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>

x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request

Feb 24, 2025
This makes it more similar to the real typeshed. It is needed to
reproduce tricky failures in tests, e.g.
python#18585. If this causes slower tests,
some tests may be switched to `tuple-simple.pyi`.

x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request

Feb 24, 2025

x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request

Feb 24, 2025
Removes todo added in python#18585 - such normalization is not technically
correct when a tuple is used as a base class.

---------

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>