Skip to content

Commit

Permalink
Add a missing kwargs forward in skeleton_label_spec (#9087)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad authored Feb 10, 2025
1 parent 1700e95 commit db293b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.d/20250210_172119_roman_missing_kwargs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Fixed

- \[SDK\] `skeleton_label_spec` now correctly forwards `kwargs` to
`PatchedLabelRequest`
(<https://github.com/cvat-ai/cvat/pull/9087>)
2 changes: 1 addition & 1 deletion cvat-sdk/cvat_sdk/auto_annotation/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def skeleton_label_spec(
name: str, id: int, sublabels: Sequence[models.SublabelRequest], **kwargs
) -> models.PatchedLabelRequest:
"""Helper factory function for PatchedLabelRequest with type="skeleton"."""
return models.PatchedLabelRequest(name=name, id=id, type="skeleton", sublabels=sublabels)
return label_spec(name, id, type="skeleton", sublabels=sublabels, **kwargs)


# pylint: disable-next=redefined-builtin
Expand Down

0 comments on commit db293b7

Please sign in to comment.