Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Short-circuit
if
expression for always true/always false vars and M…
…YPY/TYPE_CHECKING - Always short-circuit in the if's expression, instead of only short-circuiting for "ALWAYS_TRUE/FALSE" constants (e.g. sys.platform checks) and not "MYPY_TRUE/FALSE" constants (e.g. `MYPY`) - Make --always-true and --always-false map to ALWAYS_TRUE and ALWAYS_FALSE, respectively, instead of MYPY_TRUE and MYPY_FALSE. The only difference between the two is a change in import priority, but semantically uses of "--always-true" are probably closer to "this condition should be true at compile time and runtime" than "this condition should be true at compile time but false at runtime". - Fixes #5963
- Loading branch information
Showing
3 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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