Skip to content

Commit 1e9cc08

Browse files
stchabiSihem Tchabi
andauthored
fix(LAB-3357): Add a deprecate warning on the update_properties_in_label method (#1839)
Co-authored-by: Sihem Tchabi <sihem@macbook-pro-1.home>
1 parent 647441b commit 1e9cc08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kili/presentation/client/label.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,12 @@ def update_properties_in_label(
772772
Examples:
773773
>>> kili.update_properties_in_label(label_id=label_id, json_response={...})
774774
"""
775+
warnings.warn(
776+
"The method `update_properties_in_label` is going to be deprecated. Please use"
777+
" `kili.append_labels` method instead to add a new label.",
778+
DeprecationWarning,
779+
stacklevel=1,
780+
)
775781
return LabelUseCases(self.kili_api_gateway).update_properties_in_label(
776782
label_id=LabelId(label_id),
777783
seconds_to_label=seconds_to_label,

0 commit comments

Comments
 (0)