-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support pep604 union operator (#2298)
* feat: Support pep604 union operator Signed-off-by: ggydush <[email protected]> * fix: check union early Signed-off-by: ggydush <[email protected]> * refactor: Change name to 604 Signed-off-by: ggydush <[email protected]> * fix lint Signed-off-by: ggydush <[email protected]> * fix: Fix duplicated code Signed-off-by: ggydush <[email protected]> * fix: Remove code for testing Signed-off-by: ggydush <[email protected]> * test: Add simple tests Signed-off-by: ggydush <[email protected]> * Add more tests Signed-off-by: ggydush <[email protected]> * fix: Fix names Signed-off-by: ggydush <[email protected]> * fix: Lint Signed-off-by: ggydush <[email protected]> * fix: Fix again Signed-off-by: ggydush <[email protected]> * fix: Fix default Signed-off-by: ggydush <[email protected]> * test: Add test for parameter and defaults Signed-off-by: ggydush <[email protected]> * fix: Fix code coverage by ignoring Signed-off-by: ggydush <[email protected]> * refactor: Use is_union_type Signed-off-by: ggydush <[email protected]> * fix import sort Signed-off-by: ggydush <[email protected]> * fix: cleanup Signed-off-by: ggydush <[email protected]> * fix: fix Signed-off-by: ggydush <[email protected]> * refactor: Clean it up Signed-off-by: ggydush <[email protected]> * fix: Fix lint Signed-off-by: ggydush <[email protected]> * fix: Fix pydantic plugin test failure Signed-off-by: ggydush <[email protected]> * Update flytekit/core/type_engine.py Co-authored-by: Kevin Su <[email protected]> * Address comment Signed-off-by: ggydush <[email protected]> * fix: Use UnionTransformer Signed-off-by: ggydush <[email protected]> * fix: Fix lint Signed-off-by: ggydush <[email protected]> * Skip tests with | syntax on < 3.10 Signed-off-by: ggydush <[email protected]> * fix: Fix test Signed-off-by: ggydush <[email protected]> * fix: More review comments Signed-off-by: ggydush <[email protected]> * fix: Fix lint Signed-off-by: ggydush <[email protected]> --------- Signed-off-by: ggydush <[email protected]> Co-authored-by: Kevin Su <[email protected]>
- Loading branch information
Showing
6 changed files
with
55 additions
and
10 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
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