Skip to content

Avoid narrowing type[T] in type calls#21174

Merged
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:narrowself
Apr 9, 2026
Merged

Avoid narrowing type[T] in type calls#21174
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:narrowself

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja commented Apr 5, 2026

Similar to #20662

Fixes #21173

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 801c0e5 into python:master Apr 9, 2026
24 checks passed
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.

Issue with Narrowing

2 participants