supervisely 6.73.382__py3-none-any.whl → 6.73.383__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.
@@ -120,17 +120,19 @@ class SelectDatasetTree(Widget):
120
120
  self._append_to_body = append_to_body
121
121
 
122
122
  # Extract values from Enum to match the .type property of the ProjectInfo object.
123
-
124
123
  self._project_types = None
125
124
  if allowed_project_types is not None:
126
- if all(allowed_project_types) is isinstance(allowed_project_types, ProjectType):
127
- self._project_types = (
128
- [project_type.value for project_type in allowed_project_types]
129
- if allowed_project_types is not None
130
- else None
131
- )
132
- elif all(allowed_project_types) is isinstance(allowed_project_types, str):
133
- self._project_types = allowed_project_types
125
+ self._project_types = []
126
+ for project_type in allowed_project_types:
127
+ if isinstance(project_type, ProjectType):
128
+ project_type = project_type.value
129
+ elif not isinstance(project_type, str):
130
+ continue
131
+
132
+ self._project_types.append(project_type)
133
+
134
+ if self._project_types == []:
135
+ self._project_types = None
134
136
 
135
137
  # Widget components.
136
138
  self._select_team = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.382
3
+ Version: 6.73.383
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -450,7 +450,7 @@ supervisely/app/widgets/select_dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
450
450
  supervisely/app/widgets/select_dataset/select_dataset.py,sha256=Y5D1s6x8gupHQ-uReg1XdZbCcTQjLiCBW150OKzC_Zk,10027
451
451
  supervisely/app/widgets/select_dataset/template.html,sha256=7O_ZgmRs0vOL8tng6QvYbI_0o6A4yMAPB2MlfzWHeHQ,984
452
452
  supervisely/app/widgets/select_dataset_tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
453
- supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=ngSp4-R7rLsExYOY3VY7yhhC_yeeO_BkAxN95savSPc,22517
453
+ supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=nQ8Szy2BNw19BITWMwq42N6p3nCN8G4hrCc-3e4FE_M,22481
454
454
  supervisely/app/widgets/select_dataset_tree/template.html,sha256=_uvKCMP0nkpSl3FiTUxqy10JZw3q8-9hXCv22W3BDF0,38
455
455
  supervisely/app/widgets/select_item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
456
456
  supervisely/app/widgets/select_item/select_item.py,sha256=dcB0UN46rn3nFQybgrGpLRfwB6xnPo-GGrv9rsMeCbA,3833
@@ -1103,9 +1103,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1103
1103
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1104
1104
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1105
1105
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1106
- supervisely-6.73.382.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1107
- supervisely-6.73.382.dist-info/METADATA,sha256=va2f5WmgT5z98IN3fzGIi2t8M_p2URzhtN_pSgzAePA,35154
1108
- supervisely-6.73.382.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1109
- supervisely-6.73.382.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1110
- supervisely-6.73.382.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1111
- supervisely-6.73.382.dist-info/RECORD,,
1106
+ supervisely-6.73.383.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1107
+ supervisely-6.73.383.dist-info/METADATA,sha256=n8SddS6fYhdFOQyX4uEm9cX9x-2nOHBmYNtugSvfgWc,35154
1108
+ supervisely-6.73.383.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1109
+ supervisely-6.73.383.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1110
+ supervisely-6.73.383.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1111
+ supervisely-6.73.383.dist-info/RECORD,,