-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(sdk.v2): use Annotated
rather than Union
hack
#6573
Conversation
Hi @judahrand. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Thanks for the change. Please add an entry in release note.
@@ -34,3 +34,4 @@ fire>=0.3.1,<1 | |||
google-api-python-client>=1.7.8,<2 | |||
dataclasses>=0.8,<1; python_version<"3.7" | |||
pydantic>=1.8.2,<2 | |||
typing-extensions>=3.10.0.2,<4 |
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.
Should add this in setup.py as well, we can't rely on an indirect dependency from pydantic.
Also this better be conditioned by a Python version, 3.9 I think?
See dataclass for example:
Lines 53 to 54 in 55a2fb5
# Standard library backports | |
'dataclasses;python_version<"3.7"', |
Annotated
rather than Union
hackAnnotated
rather than Union
hack
/ok-to-test |
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of your changes:
This PR deals with the
TODO
comment by addingtyping_extensions
as a dependency (it was already required viapydantic
) and either importing from standard lib ortyping_extensions
.Checklist: