Skip to content
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

SDK - Components - Added type to TaskOutputReference #1995

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Aug 29, 2019

Now the task output references taken from TaskSpec instances can be
type-checked when passed to components.

This change is Reviewable

Now the task output references taken from TaskSpec instances can be
type-checked when passed to components.
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 30, 2019

/retest

@@ -65,12 +65,14 @@
PrimitiveTypes = Union[str, int, float, bool]
PrimitiveTypesIncludingNone = Optional[PrimitiveTypes]

TypeType = Union[str, Dict, List]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this type? Would ContainerType or something similar be appropriate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the python type describing the type of the component input type.
So it's "[python] type of [input/output] type"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, would it make sense to indicate that? Such as TypeIO or IOType.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed it to TypeSpecType. It's also used for task arguments and some other properties...

@ajchili
Copy link
Member

ajchili commented Aug 30, 2019

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 30, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit e54fe67 into kubeflow:master Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants