-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that annotations are dropped in the case of the dataclass and dict type transformers #2318
Ensure that annotations are dropped in the case of the dataclass and dict type transformers #2318
Conversation
…s in general Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2318 +/- ##
==========================================
- Coverage 83.50% 76.02% -7.49%
==========================================
Files 324 180 -144
Lines 24754 18062 -6692
Branches 3734 3527 -207
==========================================
- Hits 20672 13731 -6941
- Misses 3452 3733 +281
+ Partials 630 598 -32 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit regarding the comment, otherwise LGTM
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
35dc708
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
…dict type transformers (flyteorg#2318) The original exception in the `DictTransformer` was put in place to catch the case of `FlyteAnnotation` being set passed to annotated dictionary, e.g. `Annotated[dict, FlyteAnnotation("annotation-1")]` is invalid. A similar argument applies to the dataclass type transformer. Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
…dict type transformers (#2318) The original exception in the `DictTransformer` was put in place to catch the case of `FlyteAnnotation` being set passed to annotated dictionary, e.g. `Annotated[dict, FlyteAnnotation("annotation-1")]` is invalid. A similar argument applies to the dataclass type transformer. Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> Signed-off-by: Jan Fiedler <jan@union.ai>
Tracking issue
NA
Why are the changes needed?
The original exception in the
DictTransformer
was put in place to catch the case ofFlyteAnnotation
being set passed to annotated dictionary, e.g.Annotated[dict, FlyteAnnotation("annotation-1")]
is invalid. A similar argument applies to the dataclass type transformer.What changes were proposed in this pull request?
Keep the original exception, but only raise it if the annotation contains a
FlyteAnnotation
in both the dataclass and the dictionary transformers.How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link