Skip to content

Commit

Permalink
chore: Update domains module.
Browse files Browse the repository at this point in the history
  • Loading branch information
osala-eng committed Nov 9, 2023
1 parent f34b245 commit d633f40
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions source/docq/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d633f40

Please sign in to comment.