Skip to content

Commit

Permalink
fix missing reference / circular import problem
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-mccarthy committed Oct 6, 2022
1 parent 621fca2 commit 8f9a231
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/python/kfp/components/types/type_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ def construct_type_for_inputpath_or_outputpath(
return type_


class InputAnnotation():
class InputAnnotation:
"""Marker type for input artifacts."""


class OutputAnnotation():
class OutputAnnotation:
"""Marker type for output artifacts."""


Expand Down Expand Up @@ -147,6 +147,8 @@ def is_output_artifact(typ) -> bool:


def get_io_artifact_class(typ):
from kfp.dsl import Input
from kfp.dsl import Output
if not is_artifact_annotation(typ):
return None
if typ == Input or typ == Output:
Expand Down

0 comments on commit 8f9a231

Please sign in to comment.