-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: LEAP-1762: Add selectItems support (#398)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ee8550c
commit 29f7df5
Showing
7 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from .types import AnnotationsCreateBulkResponseItem | ||
from .types import AnnotationsCreateBulkRequestSelectedItems, AnnotationsCreateBulkResponseItem | ||
|
||
__all__ = ["AnnotationsCreateBulkResponseItem"] | ||
__all__ = ["AnnotationsCreateBulkRequestSelectedItems", "AnnotationsCreateBulkResponseItem"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from .annotations_create_bulk_request_selected_items import AnnotationsCreateBulkRequestSelectedItems | ||
from .annotations_create_bulk_response_item import AnnotationsCreateBulkResponseItem | ||
|
||
__all__ = ["AnnotationsCreateBulkResponseItem"] | ||
__all__ = ["AnnotationsCreateBulkRequestSelectedItems", "AnnotationsCreateBulkResponseItem"] |
34 changes: 34 additions & 0 deletions
34
src/label_studio_sdk/annotations/types/annotations_create_bulk_request_selected_items.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from ...core.pydantic_utilities import UniversalBaseModel | ||
import typing_extensions | ||
import typing | ||
from ...core.serialization import FieldMetadata | ||
import pydantic | ||
from ...core.pydantic_utilities import IS_PYDANTIC_V2 | ||
|
||
|
||
class AnnotationsCreateBulkRequestSelectedItems(UniversalBaseModel): | ||
all_: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="all")] = pydantic.Field(default=None) | ||
""" | ||
Indicates whether to apply the operation to all tasks. If true, this overrides any included or excluded lists. | ||
""" | ||
|
||
included: typing.Optional[typing.List[int]] = pydantic.Field(default=None) | ||
""" | ||
An explicit list of task IDs to include. | ||
""" | ||
|
||
excluded: typing.Optional[typing.List[int]] = pydantic.Field(default=None) | ||
""" | ||
An explicit list of task IDs to exclude. | ||
""" | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |