-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#1207) **Description of PR** We renamed `RunnerInput` and `RunnerOutput` to `Input`/`Output` to streamline terminology for the new decorators. As the `script_pydantic_io` is an experimental feature, and the only change is to rename references to the types, we are making a breaking change to remove the type aliases. Users can do `import hera.workflows.io.Input as RunnerInput` if they want to avoid code changes elsewhere in their codebase. Signed-off-by: Elliot Gunton <[email protected]>
- Loading branch information
1 parent
8cb375a
commit a787965
Showing
4 changed files
with
2 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
"""Hera IO models.""" | ||
|
||
from typing import Type | ||
|
||
from pydantic import VERSION | ||
|
||
if VERSION.split(".")[0] == "2": | ||
from hera.workflows.io.v2 import Input, Output | ||
|
||
RunnerInput: Type = Input | ||
RunnerOutput: Type = Output | ||
else: | ||
from hera.workflows.io.v1 import Input, Output # type: ignore | ||
|
||
RunnerInput: Type = Input # type: ignore | ||
RunnerOutput: Type = Output # type: ignore | ||
|
||
__all__ = [ | ||
"Input", | ||
"Output", | ||
"RunnerInput", | ||
"RunnerOutput", | ||
] |