KEMBAR78
[mypyc] Optimize TYPE_CHECKING to False at Runtime by srilman · Pull Request #16263 · python/mypy · GitHub
Skip to content

Conversation

srilman
Copy link
Contributor

@srilman srilman commented Oct 14, 2023

Fixes mypyc/mypyc#902

This PR finds references of typing.TYPE_CHECKING or typing_extensions.TYPE_CHECKING and optimizes them to False in mypyc.

@srilman
Copy link
Contributor Author

srilman commented Oct 28, 2023

@JukkaL Is there a way I can request a review?

@srilman
Copy link
Contributor Author

srilman commented Feb 6, 2024

@JukkaL ?

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.

Looks good! Thanks for the PR, and sorry about the slow review.

@JukkaL JukkaL merged commit 5a8cd80 into python:master Feb 28, 2024
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.

Optimize away references to TYPE_CHECKING

2 participants