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.
Files changed (32) hide show
  1. {streambricks-0.2.11 → streambricks-0.2.12}/PKG-INFO +1 -1
  2. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/__init__.py +1 -1
  3. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/main.py +2 -6
  4. {streambricks-0.2.11 → streambricks-0.2.12}/.copier-answers.yml +0 -0
  5. {streambricks-0.2.11 → streambricks-0.2.12}/.github/FUNDING.yml +0 -0
  6. {streambricks-0.2.11 → streambricks-0.2.12}/.github/copilot-instructions.md +0 -0
  7. {streambricks-0.2.11 → streambricks-0.2.12}/.github/dependabot.yml +0 -0
  8. {streambricks-0.2.11 → streambricks-0.2.12}/.github/workflows/build.yml +0 -0
  9. {streambricks-0.2.11 → streambricks-0.2.12}/.github/workflows/documentation.yml +0 -0
  10. {streambricks-0.2.11 → streambricks-0.2.12}/.gitignore +0 -0
  11. {streambricks-0.2.11 → streambricks-0.2.12}/.pre-commit-config.yaml +0 -0
  12. {streambricks-0.2.11 → streambricks-0.2.12}/LICENSE +0 -0
  13. {streambricks-0.2.11 → streambricks-0.2.12}/README.md +0 -0
  14. {streambricks-0.2.11 → streambricks-0.2.12}/docs/.empty +0 -0
  15. {streambricks-0.2.11 → streambricks-0.2.12}/duties.py +0 -0
  16. {streambricks-0.2.11 → streambricks-0.2.12}/mkdocs.yml +0 -0
  17. {streambricks-0.2.11 → streambricks-0.2.12}/overrides/_dummy.txt +0 -0
  18. {streambricks-0.2.11 → streambricks-0.2.12}/pyproject.toml +0 -0
  19. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/helpers.py +0 -0
  20. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/py.typed +0 -0
  21. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/state.py +0 -0
  22. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/__init__.py +0 -0
  23. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/bind_kwargs.py +0 -0
  24. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_selector.py +0 -0
  25. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/__init__.py +0 -0
  26. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/field_metadata_renderers.py +0 -0
  27. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/model_widget/type_renderers.py +0 -0
  28. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/multi_select.py +0 -0
  29. {streambricks-0.2.11 → streambricks-0.2.12}/src/streambricks/widgets/type_helpers.py +0 -0
  30. {streambricks-0.2.11 → streambricks-0.2.12}/tests/__init__.py +0 -0
  31. {streambricks-0.2.11 → streambricks-0.2.12}/tests/conftest.py +0 -0
  32. {streambricks-0.2.11 → streambricks-0.2.12}/tests/test_widgets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streambricks
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: Streamlit widgets and helpers
5
5
  Project-URL: Documentation, https://phil65.github.io/streambricks/
6
6
  Project-URL: Source, https://github.com/phil65/streambricks
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.11"
1
+ __version__ = "0.2.12"
2
2
 
3
3
 
4
4
  from streambricks.widgets.model_widget import (
@@ -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 TYPE_CHECKING, Any, Literal, TypeVar, get_args, get_origin, overload
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