streambricks 0.0.1__tar.gz → 0.1.1__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.0.1 → streambricks-0.1.1}/PKG-INFO +1 -1
- streambricks-0.1.1/src/streambricks/__init__.py +8 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/src/streambricks/widgets/model_widget.py +3 -3
- streambricks-0.0.1/src/streambricks/__init__.py +0 -8
- {streambricks-0.0.1 → streambricks-0.1.1}/.copier-answers.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.github/FUNDING.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.github/copilot-instructions.md +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.github/dependabot.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.github/workflows/build.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.github/workflows/documentation.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.gitignore +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/.pre-commit-config.yaml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/LICENSE +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/README.md +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/docs/.empty +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/duties.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/mkdocs.yml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/overrides/_dummy.txt +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/pyproject.toml +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/src/streambricks/helpers.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/src/streambricks/py.typed +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/src/streambricks/widgets/__init__.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/src/streambricks/widgets/multi_select.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/tests/__init__.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/tests/conftest.py +0 -0
- {streambricks-0.0.1 → streambricks-0.1.1}/tests/test_widgets.py +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__version__ = "0.1.1"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from streambricks.widgets.model_widget import render_model_form
|
|
5
|
+
from streambricks.widgets.multi_select import multiselect, MultiSelectItem
|
|
6
|
+
from streambricks.helpers import run
|
|
7
|
+
|
|
8
|
+
__all__ = ["MultiSelectItem", "multiselect", "render_model_form", "run"]
|
|
@@ -683,7 +683,7 @@ def render_model_instance_field(
|
|
|
683
683
|
container = st.container()
|
|
684
684
|
container.divider()
|
|
685
685
|
else:
|
|
686
|
-
container = st
|
|
686
|
+
container = st # type: ignore
|
|
687
687
|
|
|
688
688
|
# Render each field of the nested model
|
|
689
689
|
updated_value = {}
|
|
@@ -982,7 +982,7 @@ def render_model_field(model_class, field_name, value=None):
|
|
|
982
982
|
if hasattr(field, "native_field") and hasattr(
|
|
983
983
|
field.native_field, "json_schema_extra"
|
|
984
984
|
):
|
|
985
|
-
field_info.update(field.native_field.json_schema_extra or {}) #
|
|
985
|
+
field_info.update(field.native_field.json_schema_extra or {}) # type: ignore
|
|
986
986
|
|
|
987
987
|
# Get description for the label
|
|
988
988
|
label = field_name.replace("_", " ").title()
|
|
@@ -990,7 +990,7 @@ def render_model_field(model_class, field_name, value=None):
|
|
|
990
990
|
description = field.metadata["description"]
|
|
991
991
|
field_info["description"] = description
|
|
992
992
|
elif hasattr(field, "native_field") and hasattr(field.native_field, "description"):
|
|
993
|
-
description = field.native_field.description #
|
|
993
|
+
description = field.native_field.description # type: ignore
|
|
994
994
|
field_info["description"] = description
|
|
995
995
|
|
|
996
996
|
# Get renderer and render the 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
|
|
File without changes
|