Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove assertion from TypeGuard serialization #10486

Merged
merged 1 commit into from
May 19, 2021
Merged

Remove assertion from TypeGuard serialization #10486

merged 1 commit into from
May 19, 2021

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