FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix type narrowing for types.EllipsisType by hauntsaninja · Pull Request #17003 · python/mypy · GitHub

Repository navigation

Fix type narrowing for types.EllipsisType - #17003

Merged
hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:fix-ellipsis-narrow
Mar 10, 2024
Merged

hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:fix-ellipsis-narrow

Conversation

Copy link
Copy Markdown
Collaborator

Fixes #17002

github-actions Bot commented Mar 9, 2024

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

I know it seems silly but perhaps we should add a test to prevent regressions on this 😅
Otherwise LGTM

Copy link
Copy Markdown
Collaborator Author

Yeah, I thought about it, but you need one of the expensive tests that runs against full typeshed (and also behaviour here is version dependent because types.EllipsisType is a 3.10 thing)

hauntsaninja merged commit 16abf5c into python:master Mar 10, 2024
hauntsaninja deleted the fix-ellipsis-narrow branch October 15, 2024 18:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Type narrowing for ellipsis via 'is ...' failing in 1.9.0

2 participants


Back | FazBrowse Home | New Git URL