bec-widgets 2.13.1__py3-none-any.whl → 2.13.2__py3-none-any.whl

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.
CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.13.2 (2025-06-13)
5
+
6
+ ### Bug Fixes
7
+
8
+ - Allow sets in generated form types
9
+ ([`32fd959`](https://github.com/bec-project/bec_widgets/commit/32fd959e675108265f35139b44d02ba966bd37e2))
10
+
11
+
4
12
  ## v2.13.1 (2025-06-12)
5
13
 
6
14
  ### Bug Fixes
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.13.1
3
+ Version: 2.13.2
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -64,12 +64,12 @@ class FormItemSpec(BaseModel):
64
64
  if isinstance(v, (type, UnionType)):
65
65
  return v
66
66
  if isinstance(v, GenericAlias):
67
- if v.__origin__ in [list, dict] and all(
67
+ if v.__origin__ in [list, dict, set] and all(
68
68
  arg in allowed_primitives for arg in v.__args__
69
69
  ):
70
70
  return v
71
71
  raise ValueError(
72
- f"Generics of type {v} are not supported - only lists and dicts of primitive types {allowed_primitives}"
72
+ f"Generics of type {v} are not supported - only lists, dicts and sets of primitive types {allowed_primitives}"
73
73
  )
74
74
  if type(v) is type(Literal[""]): # _LiteralGenericAlias is not exported from typing
75
75
  arg_types = set(type(arg) for arg in v.__args__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_widgets
3
- Version: 2.13.1
3
+ Version: 2.13.2
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=1nMYldzVk0tFkBWYTcUjumOrdSADASheWOAc0kOFDYs,9509
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=ivqg3HTaOxNbEW3bzWh9MXAkrekuGoNdj0Mj3SdRYuw,639
5
- CHANGELOG.md,sha256=aAWLeQ6IJvzwH4IAj-Vf5W9cZjxO9yeUBX1_dhKhP74,299215
5
+ CHANGELOG.md,sha256=iuJO9sV3hXRO8Mb0kvbvzNA8AJlemMi5HDYPFvQjN50,299402
6
6
  LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
7
- PKG-INFO,sha256=KiNbul18LfDNpdowI8d1AA-gucDjZuwydiec-2qv2cM,1252
7
+ PKG-INFO,sha256=y1GOvEzZwWxxQRtQojJJIP1Xpk8QxJ7iyLwk1OhaM2Q,1252
8
8
  README.md,sha256=oY5Jc1uXehRASuwUJ0umin2vfkFh7tHF-LLruHTaQx0,3560
9
- pyproject.toml,sha256=zRezIDntw3e0w6gcsgKEjEMMSO7b31LEVPR0z2OtexM,2827
9
+ pyproject.toml,sha256=fbAIPFbGJPDiSwa40mxTGSJ95-1-3yXVLkDVp4BmndU,2827
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .github/pull_request_template.md,sha256=F_cJXzooWMFgMGtLK-7KeGcQt0B4AYFse5oN0zQ9p6g,801
12
12
  .github/ISSUE_TEMPLATE/bug_report.yml,sha256=WdRnt7HGxvsIBLzhkaOWNfg8IJQYa_oV9_F08Ym6znQ,1081
@@ -104,7 +104,7 @@ bec_widgets/utils/widget_state_manager.py,sha256=tzrxVmnGa6IHSEdeh-R68aQ934BsuS9
104
104
  bec_widgets/utils/yaml_dialog.py,sha256=T6UyGNGdmpXW74fa_7Nk6b99T5pp2Wvyw3AOauRc8T8,2407
105
105
  bec_widgets/utils/forms_from_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
106
  bec_widgets/utils/forms_from_types/forms.py,sha256=o2BPhegPDI5b6zzLIrFrWja2FkKWcz97iwSrl0j0JSM,10097
107
- bec_widgets/utils/forms_from_types/items.py,sha256=Jkou4xvx9ZJmTATnPntGaFXW5MUa_ChXedPT3HzsdM8,13002
107
+ bec_widgets/utils/forms_from_types/items.py,sha256=Pt5QWMtbu9Hb6Mcvm0-SR8NUY3-KsSwcjkGDHmdwq-w,13013
108
108
  bec_widgets/utils/forms_from_types/styles.py,sha256=PeMx8bLI2PX0--U1QOS-3yuGQiyAX4W3EpL_IA5iIrI,702
109
109
  bec_widgets/utils/plugin_templates/plugin.template,sha256=DWtJdHpdsVtbiTTOniH3zBe5a40ztQ20o_-Hclyu38s,1266
110
110
  bec_widgets/utils/plugin_templates/register.template,sha256=XyL3OZPT_FTArLAM8tHd5qMqv2ZuAbJAZLsNNnHcagU,417
@@ -408,8 +408,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
408
408
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
409
409
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
410
410
  bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
411
- bec_widgets-2.13.1.dist-info/METADATA,sha256=KiNbul18LfDNpdowI8d1AA-gucDjZuwydiec-2qv2cM,1252
412
- bec_widgets-2.13.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
413
- bec_widgets-2.13.1.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
414
- bec_widgets-2.13.1.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
415
- bec_widgets-2.13.1.dist-info/RECORD,,
411
+ bec_widgets-2.13.2.dist-info/METADATA,sha256=y1GOvEzZwWxxQRtQojJJIP1Xpk8QxJ7iyLwk1OhaM2Q,1252
412
+ bec_widgets-2.13.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
413
+ bec_widgets-2.13.2.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
414
+ bec_widgets-2.13.2.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
415
+ bec_widgets-2.13.2.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "2.13.1"
7
+ version = "2.13.2"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [