Skip to content

Commit 11b4964

Browse files
authored
[PLT-1900] Adjusted deprecation message to new standard (#1908)
1 parent c9e57fe commit 11b4964

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

libs/labelbox/src/labelbox/schema/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def export_v2(
4747
"""
4848

4949
warnings.warn(
50-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
50+
"The method export_v2 for Catalog is deprecated and will be removed in the next major release. Use the export method instead.",
5151
DeprecationWarning,
5252
stacklevel=2,
5353
)

libs/labelbox/src/labelbox/schema/data_row.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def export_v2(
279279
"""
280280

281281
warnings.warn(
282-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
282+
"The method export_v2 for DataRow is deprecated and will be removed in the next major release. Use the export method instead.",
283283
DeprecationWarning,
284284
stacklevel=2,
285285
)

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def export_v2(
360360
"""
361361

362362
warnings.warn(
363-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
363+
"The method export_v2 for Dataset is deprecated and will be removed in the next major release. Use the export method instead.",
364364
DeprecationWarning,
365365
stacklevel=2,
366366
)

libs/labelbox/src/labelbox/schema/model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def export_v2(
532532
"""
533533

534534
warnings.warn(
535-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
535+
"The method export_v2 for ModelRun is deprecated and will be removed in the next major release. Use the export method instead.",
536536
DeprecationWarning,
537537
stacklevel=2,
538538
)

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def export_v2(
414414
"""
415415

416416
warnings.warn(
417-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
417+
"The method export_v2 for Project is deprecated and will be removed in the next major release. Use the export method instead.",
418418
DeprecationWarning,
419419
stacklevel=2,
420420
)

libs/labelbox/src/labelbox/schema/slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def export_v2(
129129
"""
130130

131131
warnings.warn(
132-
"You are currently utilizing export_v2 for this action, which will be removed in 7.0. Please refer to our docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
132+
"The method export_v2 for CatalogSlice is deprecated and will be removed in the next major release. Use the export method instead.",
133133
DeprecationWarning,
134134
stacklevel=2,
135135
)

0 commit comments

Comments
 (0)