diff options
| author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
|---|---|---|
| committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
| commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
| tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py | |
| parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
| download | gn-ai-master.tar.gz | |
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py')
| -rw-r--r-- | .venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py new file mode 100644 index 00000000..3a726b38 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_inputs_outputs/base.py @@ -0,0 +1,34 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- +from typing import Any + +from azure.ai.ml._schema.component.input_output import SUPPORTED_PARAM_TYPES +from azure.ai.ml.entities._mixins import DictMixin, RestTranslatableMixin + + +class _InputOutputBase(DictMixin, RestTranslatableMixin): + def __init__( + self, + *, + # pylint: disable=redefined-builtin + type: Any, + # pylint: disable=unused-argument + **kwargs: Any, + ) -> None: + """Base class for Input & Output class. + + This class is introduced to support literal output in the future. + + :param type: The type of the Input/Output. + :type type: str + """ + self.type = type + + def _is_literal(self) -> bool: + """Check whether input is a literal + + :return: True if this input is literal input. + :rtype: bool + """ + return self.type in SUPPORTED_PARAM_TYPES |
