Skip to content

[mypyc] Optimize TYPE_CHECKING to False at Runtime#16263

Merged
JukkaL merged 3 commits intopython:masterfrom
srilman:slade/mypyc-type_checking-false
Feb 28, 2024
Merged

[mypyc] Optimize TYPE_CHECKING to False at Runtime#16263
JukkaL merged 3 commits intopython:masterfrom
srilman:slade/mypyc-type_checking-false

Conversation

@srilman
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

srilman commented Oct 28, 2023

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

@srilman
Copy link
Copy Markdown
Contributor Author

srilman commented Feb 6, 2024

@JukkaL ?

Copy link
Copy Markdown
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