You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Projects\something\kfp_playground\pipeline.py", line 5, in <module>
@dsl.component(base_image='python:3.12')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\component_decorator.py", line 126, in component
return component_factory.create_component_from_func(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\component_factory.py", line 589, in create_component_from_func
component_spec = extract_component_interface(func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\component_factory.py", line 451, in extract_component_interface
name_to_input_spec, name_to_output_spec = get_name_to_specs(
^^^^^^^^^^^^^^^^^^
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\component_factory.py", line 302, in get_name_to_specs
name, list(name_to_input_specs))] = make_input_spec(
^^^^^^^^^^^^^^^^
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\component_factory.py", line 406, in make_input_spec
return structures.InputSpec(
^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 8, in __init__
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\structures.py", line 57, in __post_init__
self._validate_type()
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\structures.py", line 131, in _validate_type
type_utils.validate_bundled_artifact_type(self.type)
File "C:\Projects\something\kfp_playground\.venv\Lib\site-packages\kfp\dsl\types\type_utils.py", line 544, in validate_bundled_artifact_type
raise TypeError(
TypeError: Artifacts must have both a schema_title and a schema_version, separated by `@`. Got: dict[str, str]
Environment
Steps to reproduce
run the following code like this:
and the output is
Expected result
Successfully compile the pipeline.
This works:
but it's ugly and the
dict[str,str]
is in python for over 4 years already.Materials and Reference
[
---](https://peps.python.org/pep-0585/)
Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: