From 9b1580039ff87c92a947556201bd54ebf1072a94 Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Sun, 12 Jul 2020 21:34:33 -0700 Subject: [PATCH] feat(sdk): SDK - Components - Added annotations to InputSpec and OutputSpec (#4154) --- sdk/python/kfp/components/_structures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/python/kfp/components/_structures.py b/sdk/python/kfp/components/_structures.py index 2afc2be562..ea766a3b60 100644 --- a/sdk/python/kfp/components/_structures.py +++ b/sdk/python/kfp/components/_structures.py @@ -80,6 +80,7 @@ class InputSpec(ModelBase): description: Optional[str] = None, default: Optional[PrimitiveTypes] = None, optional: Optional[bool] = False, + annotations: Optional[Dict[str, Any]] = None, ): super().__init__(locals()) @@ -90,6 +91,7 @@ class OutputSpec(ModelBase): name: str, type: Optional[TypeSpecType] = None, description: Optional[str] = None, + annotations: Optional[Dict[str, Any]] = None, ): super().__init__(locals())