-
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.
Remove types aliases to Input/Output
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
- Loading branch information
1 parent
8cb375a
commit 5926d80
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", | ||
] |