From d633f40da0e78d71c9044ba2190c1ca5cc6d42b9 Mon Sep 17 00:00:00 2001 From: Jashon Osala Date: Thu, 9 Nov 2023 05:08:03 +0300 Subject: [PATCH] chore: Update domains module. --- source/docq/domain.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/source/docq/domain.py b/source/docq/domain.py index 1e46494c..1c804f3b 100644 --- a/source/docq/domain.py +++ b/source/docq/domain.py @@ -4,14 +4,13 @@ import sys from dataclasses import dataclass from datetime import datetime -from typing import Any, Literal, Optional, Self +from typing import Any, Optional, Self from .config import FeatureType, SpaceType _SEPARATOR_FOR_STR = ":" _SEPARATOR_FOR_VALUE = "_" _DEFAULT_SEPARATOR = _SEPARATOR_FOR_STR -ValueType = Literal["text/password", "dynamic-options", "ui-interaction"] def _join_properties(separator: str = _DEFAULT_SEPARATOR, *args: Optional[Any]) -> str: @@ -55,25 +54,13 @@ def value(self: Self) -> str: @dataclass class ConfigKey: - """Configuration key. - - Args: - key (str): The key for the configuration. - name (str): The name of the configuration. - is_optional (bool): Whether the configuration is optional. - is_secret (bool): Whether the configuration is a secret. - ref_link (Optional[str]): The reference link for the configuration. - input_element (Optional[str]): The type of the configuration defaults to text_input. - is_hidden (bool): Whether the configuration is hidden. - """ + """Config key.""" key: str name: str is_optional: bool = False is_secret: bool = False ref_link: Optional[str] = None - input_element: InputElementType = "text_input" - is_hidden: bool = False @dataclass