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

Fix crash on TypeGuard in __call__ by ilevkivskyi · Pull Request #16516 · python/mypy · GitHub

Repository navigation

Fix crash on TypeGuard in __call__ - #16516

Merged
JukkaL merged 1 commit into
python:masterfrom
ilevkivskyi:fix-tg-crash
Nov 22, 2023
Merged

JukkaL merged 1 commit into
python:masterfrom
ilevkivskyi:fix-tg-crash

Conversation

Copy link
Copy Markdown
Member

Fixes #16187

Note there may be some more similar crashes, I don't handle them all properly, for now I leave a TODO and replace the assert with if, so at least we should not crash on an unhandled case.

Copy link
Copy Markdown
Contributor

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

discord.py (https://github.com/Rapptz/discord.py): typechecking got 1.08x faster (190.2s -> 176.1s)
(Performance measurements are based on a single noisy sample)

JukkaL merged commit 242ad2a into python:master Nov 22, 2023
ilevkivskyi deleted the fix-tg-crash branch November 22, 2023 15:32
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.

(🐞) Crash with TypeGuard on __call__

2 participants


Back | FazBrowse Home | New Git URL