Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle X | Y union in GenericModel (#4977)
* Fix X | Y union syntax breaks GenericModel (#4146) * Update changes/4146-thenx.md Co-authored-by: ⬢ Samuel Colvin <s@muelcolvin.com> * Improve tests * Recreate newstyle union via typing._UnionGenericAlias * Add basic pep-604 union args order caching detection test --------- Co-authored-by: ⬢ Samuel Colvin <s@muelcolvin.com>
- Loading branch information
1 parent
0bc7cd3
commit a699707
Showing
3 changed files
with
113 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix `X | Y` union syntax breaking `GenericModel` |
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