From 5ff7a65a0cf1751a10b4b4e92ed38b9de9e5ed4d Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Mon, 4 May 2020 22:41:08 -0700 Subject: [PATCH] SDK - Components - Fixed bug in _strip_type_hints_using_lib2to3 (#3679) --- sdk/python/kfp/components/_python_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kfp/components/_python_op.py b/sdk/python/kfp/components/_python_op.py index c83d6e6682..54f780f5a0 100644 --- a/sdk/python/kfp/components/_python_op.py +++ b/sdk/python/kfp/components/_python_op.py @@ -247,7 +247,7 @@ def _strip_type_hints_using_lib2to3(source_code: str) -> str: def get_fixers(self): return self._fixers, [] - stripped_code = Refactor([StripAnnotations]).refactor_string(source_code, '') + stripped_code = str(Refactor([StripAnnotations]).refactor_string(source_code, '')) return stripped_code