Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deep union type-checking optimization.
This commit optimizes away a superfluous expression in dynamically generated code type-checking PEP 484- and 604-compliant unions containing *no* unsubscripted types and thus containing *only* subscripted type hints (e.g., `list[str] | set[bytes]`). Nobody asked for this. Nonetheless, @leycec still delivers the sp33d. (*Son, a Sun!*)
- Loading branch information
Showing
1 changed file
with
65 additions
and
55 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