Skip to content

Commit

Permalink
fix(LAB-3357): Add a deprecate warning on the update_properties_in_la…
Browse files Browse the repository at this point in the history
…bel method (#1839)

Co-authored-by: Sihem Tchabi <[email protected]>
  • Loading branch information
stchabi and Sihem Tchabi authored Dec 24, 2024
1 parent 647441b commit 1e9cc08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/kili/presentation/client/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@ def update_properties_in_label(
Examples:
>>> kili.update_properties_in_label(label_id=label_id, json_response={...})
"""
warnings.warn(
"The method `update_properties_in_label` is going to be deprecated. Please use"
" `kili.append_labels` method instead to add a new label.",
DeprecationWarning,
stacklevel=1,
)
return LabelUseCases(self.kili_api_gateway).update_properties_in_label(
label_id=LabelId(label_id),
seconds_to_label=seconds_to_label,
Expand Down

0 comments on commit 1e9cc08

Please sign in to comment.