KEMBAR78
Remove assertion from TypeGuard serialization by JelleZijlstra · Pull Request #10486 · python/mypy · GitHub
Skip to content

Conversation

JelleZijlstra
Copy link
Member

This came up in python/typeshed#5473: mypy started crashing when
I made a function return TypeGuard[Type[Any]]. I wasn't able to
reproduce this locally so far in a standalone file, but verified that removing the
assertion fixes the crash.

This came up in python/typeshed#5473: mypy started crashing when
I made a function return TypeGuard[Type[Any]]. I wasn't able to
reproduce this locally so far, but verified that removing the
assertion fixes the crash.
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

LGTM! It may be possible to test this using incremental mode test cases somehow.

@JukkaL JukkaL merged commit 02e016f into master May 19, 2021
@JukkaL JukkaL deleted the fixguard branch May 19, 2021 08:49
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.

2 participants