streambricks 0.2.11__tar.gz → 0.2.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {streambricks-0.2.11 → streambricks-0.2.12}/PKG-INFO +1 -1
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/__init__.py +1 -1
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/main.py +2 -6
- {streambricks-0.2.11 → streambricks-0.2.12}/.copier-answers.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.github/FUNDING.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.github/copilot-instructions.md +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.github/dependabot.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.github/workflows/build.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.github/workflows/documentation.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.gitignore +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/.pre-commit-config.yaml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/LICENSE +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/README.md +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/docs/.empty +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/duties.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/mkdocs.yml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/overrides/_dummy.txt +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/pyproject.toml +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/helpers.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/py.typed +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/state.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/__init__.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/bind_kwargs.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_selector.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/__init__.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/field_metadata_renderers.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/type_renderers.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/multi_select.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/type_helpers.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/tests/__init__.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/tests/conftest.py +0 -0
- {streambricks-0.2.11 → streambricks-0.2.12}/tests/test_widgets.py +0 -0
|
@@ -6,10 +6,10 @@ from collections.abc import Callable, Sequence
|
|
|
6
6
|
from datetime import date, datetime, time
|
|
7
7
|
from decimal import Decimal
|
|
8
8
|
from enum import Enum
|
|
9
|
-
from typing import
|
|
9
|
+
from typing import Any, Literal, TypeVar, get_args, get_origin, overload
|
|
10
10
|
|
|
11
11
|
import fieldz
|
|
12
|
-
from pydantic import SecretStr
|
|
12
|
+
from pydantic import BaseModel, SecretStr
|
|
13
13
|
import streamlit as st
|
|
14
14
|
|
|
15
15
|
from streambricks.widgets.model_widget.field_metadata_renderers import (
|
|
@@ -41,9 +41,6 @@ from streambricks.widgets.type_helpers import (
|
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
if TYPE_CHECKING:
|
|
45
|
-
from pydantic import BaseModel
|
|
46
|
-
|
|
47
44
|
T = TypeVar("T")
|
|
48
45
|
WidgetFunc = Callable[..., T]
|
|
49
46
|
TForm = TypeVar("TForm", bound=BaseModel)
|
|
@@ -54,7 +51,6 @@ FIELD_METADATA_RENDERERS: dict[str, WidgetFunc[Any]] = {
|
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
|
|
57
|
-
# Mapping of Python types to render functions
|
|
58
54
|
PRIMITIVE_RENDERERS = {
|
|
59
55
|
str: render_str_field,
|
|
60
56
|
bool: render_bool_field,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/type_renderers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|