supervisely 6.73.458__py3-none-any.whl → 6.73.459__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.

Potentially problematic release.


This version of supervisely might be problematic. Click here for more details.

@@ -119,11 +119,9 @@ class SelectDatasetTree(Widget):
119
119
  self._dataset_id = default_id or env.dataset_id(raise_not_found=False)
120
120
  if self._project_id:
121
121
  project_info = self._api.project.get_info_by_id(self._project_id)
122
- if (
123
- project_info.type not in [pt.value for pt in allowed_project_types]
124
- and allowed_project_types is not None
125
- ):
126
- self._project_id = None
122
+ if allowed_project_types is not None:
123
+ if project_info.type not in [pt.value for pt in allowed_project_types]:
124
+ self._project_id = None
127
125
 
128
126
  self._multiselect = multiselect
129
127
  self._compact = compact
@@ -326,26 +324,22 @@ class SelectDatasetTree(Widget):
326
324
  raise ValueError("This method can only be called when multiselect is enabled.")
327
325
  self._select_dataset.set_selected_by_id(dataset_ids)
328
326
 
329
-
330
327
  def team_changed(self, func: Callable) -> Callable:
331
- """Decorator to set the callback function for the team changed event.
332
- """
328
+ """Decorator to set the callback function for the team changed event."""
333
329
  if self._compact:
334
330
  raise ValueError("callback 'team_changed' is not available in compact mode.")
335
331
  self._team_changed_callbacks.append(func)
336
332
  return func
337
333
 
338
334
  def workspace_changed(self, func: Callable) -> Callable:
339
- """Decorator to set the callback function for the workspace changed event.
340
- """
335
+ """Decorator to set the callback function for the workspace changed event."""
341
336
  if self._compact:
342
337
  raise ValueError("callback 'workspace_changed' is not available in compact mode.")
343
338
  self._workspace_changed_callbacks.append(func)
344
339
  return func
345
340
 
346
341
  def project_changed(self, func: Callable) -> Callable:
347
- """Decorator to set the callback function for the project changed event.
348
- """
342
+ """Decorator to set the callback function for the project changed event."""
349
343
  if self._compact:
350
344
  raise ValueError("callback 'project_changed' is not available in compact mode.")
351
345
  self._project_changed_callbacks.append(func)
@@ -484,7 +478,7 @@ class SelectDatasetTree(Widget):
484
478
  ):
485
479
  self._select_dataset.select_all()
486
480
  self._select_dataset_field.hide()
487
-
481
+
488
482
  for callback in self._project_changed_callbacks:
489
483
  callback(project_id)
490
484
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.458
3
+ Version: 6.73.459
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -461,7 +461,7 @@ supervisely/app/widgets/select_dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
461
461
  supervisely/app/widgets/select_dataset/select_dataset.py,sha256=S7zl83lUhquJ1U8GugiViEiGId6a5nVDfyIRRxh_LT4,10295
462
462
  supervisely/app/widgets/select_dataset/template.html,sha256=7O_ZgmRs0vOL8tng6QvYbI_0o6A4yMAPB2MlfzWHeHQ,984
463
463
  supervisely/app/widgets/select_dataset_tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
464
- supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=gVJne5A4-QtqEy1s3qwWFR_LlOHrBUlR0vo2BOa8XzQ,25649
464
+ supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=Dl2RnuUe0RLkZwGOXbcJO_9tcFmIId8dCKZkRpCqcRY,25577
465
465
  supervisely/app/widgets/select_dataset_tree/template.html,sha256=_uvKCMP0nkpSl3FiTUxqy10JZw3q8-9hXCv22W3BDF0,38
466
466
  supervisely/app/widgets/select_item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
467
467
  supervisely/app/widgets/select_item/select_item.py,sha256=dcB0UN46rn3nFQybgrGpLRfwB6xnPo-GGrv9rsMeCbA,3833
@@ -1129,9 +1129,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1129
1129
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1130
1130
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1131
1131
  supervisely_lib/__init__.py,sha256=yRwzEQmVwSd6lUQoAUdBngKEOlnoQ6hA9ZcoZGJRNC4,331
1132
- supervisely-6.73.458.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1133
- supervisely-6.73.458.dist-info/METADATA,sha256=NE7sMUK3sfkqLwTOBxjJf3DNJ9H2Eb-S6mAOJmAX8pg,35520
1134
- supervisely-6.73.458.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1135
- supervisely-6.73.458.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1136
- supervisely-6.73.458.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1137
- supervisely-6.73.458.dist-info/RECORD,,
1132
+ supervisely-6.73.459.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1133
+ supervisely-6.73.459.dist-info/METADATA,sha256=fT3Xr_EEuWP4jf0YjHbrOqHWfA7XvszQuG4gNiEJzVA,35520
1134
+ supervisely-6.73.459.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1135
+ supervisely-6.73.459.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1136
+ supervisely-6.73.459.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1137
+ supervisely-6.73.459.dist-info/RECORD,,