Skip to content

Commit d2ca4fa

Browse files
chore: dia-2209: trigger follow-merge (#444)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 123f793 commit d2ca4fa

File tree

12 files changed

+595
-901
lines changed

12 files changed

+595
-901
lines changed

.mock/definition/__package__.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ errors:
2424
type: unknown
2525
docs: Invalid refresh token
2626
types:
27+
AnnotationCompletedBy:
28+
discriminated: false
29+
union:
30+
- UserSimple
31+
- integer
32+
source:
33+
openapi: openapi/openapi.yaml
34+
inline: true
2735
AnnotationLastAction:
2836
enum:
2937
- prediction
@@ -55,7 +63,7 @@ types:
5563
default: ''
5664
validation:
5765
minLength: 1
58-
completed_by: optional<integer>
66+
completed_by: optional<AnnotationCompletedBy>
5967
unique_id:
6068
type: optional<string>
6169
validation:

.mock/definition/jwtSettings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ service:
99
method: GET
1010
auth: true
1111
docs: |
12-
Retrieve JWT settings for the currently active organization.
12+
Retrieve JWT settings for the currently-active organization.
1313
source:
1414
openapi: openapi/openapi.yaml
1515
display-name: Retrieve JWT Settings

.mock/openapi/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7663,7 +7663,9 @@ components:
76637663
minLength: 1
76647664
completed_by:
76657665
title: Completed by
7666-
type: integer
7666+
anyOf:
7667+
- $ref: "#/components/schemas/UserSimple"
7668+
- integer
76677669
unique_id:
76687670
title: Unique id
76697671
type: string

poetry.lock

Lines changed: 566 additions & 640 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "label-studio-sdk"
33

44
[tool.poetry]
55
name = "label-studio-sdk"
6-
version = "1.0.12.dev"
6+
version = "1.0.12"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -40,13 +40,11 @@ appdirs = ">=1.4.3"
4040
datamodel-code-generator = "0.26.1"
4141
httpx = ">=0.21.2"
4242
ijson = ">=3.2.3"
43-
jinja2 = ">=3.1.6,<4.0"
4443
jsf = "^0.11.2"
4544
jsonschema = ">=4.23.0"
4645
lxml = ">=4.2.5"
4746
nltk = "^3.9.1"
4847
numpy = ">=1.26.4,<3.0.0"
49-
opencv-python = "^4.9.0" #add openCV
5048
pandas = ">=0.24.0"
5149
pydantic = ">= 1.9.2"
5250
pydantic-core = "^2.18.2"
@@ -80,6 +78,3 @@ line-length = 120
8078
[build-system]
8179
requires = ["poetry-core"]
8280
build-backend = "poetry.core.masonry.api"
83-
84-
[project.scripts]
85-
label-studio-converter = "label_studio_sdk.converter.main:main"

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8398,7 +8398,7 @@ client.tokens.refresh(
83988398
<dl>
83998399
<dd>
84008400

8401-
Retrieve JWT settings for the currently active organization.
8401+
Retrieve JWT settings for the currently-active organization.
84028402
</dd>
84038403
</dl>
84048404
</dd>

src/label_studio_sdk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from .types import (
44
AccessTokenResponse,
55
Annotation,
6+
AnnotationCompletedBy,
67
AnnotationFilterOptions,
78
AnnotationLastAction,
89
AnnotationsDmField,
@@ -200,6 +201,7 @@
200201
"ActionsCreateRequestSelectedItemsExcluded",
201202
"ActionsCreateRequestSelectedItemsIncluded",
202203
"Annotation",
204+
"AnnotationCompletedBy",
203205
"AnnotationFilterOptions",
204206
"AnnotationLastAction",
205207
"AnnotationsCreateBulkRequestSelectedItems",

src/label_studio_sdk/jwt_settings/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
1919

2020
def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> JwtSettingsResponse:
2121
"""
22-
Retrieve JWT settings for the currently active organization.
22+
Retrieve JWT settings for the currently-active organization.
2323
2424
Parameters
2525
----------
@@ -134,7 +134,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
134134

135135
async def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> JwtSettingsResponse:
136136
"""
137-
Retrieve JWT settings for the currently active organization.
137+
Retrieve JWT settings for the currently-active organization.
138138
139139
Parameters
140140
----------

src/label_studio_sdk/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from .access_token_response import AccessTokenResponse
44
from .annotation import Annotation
5+
from .annotation_completed_by import AnnotationCompletedBy
56
from .annotation_filter_options import AnnotationFilterOptions
67
from .annotation_last_action import AnnotationLastAction
78
from .annotations_dm_field import AnnotationsDmField
@@ -108,6 +109,7 @@
108109
__all__ = [
109110
"AccessTokenResponse",
110111
"Annotation",
112+
"AnnotationCompletedBy",
111113
"AnnotationFilterOptions",
112114
"AnnotationLastAction",
113115
"AnnotationsDmField",

src/label_studio_sdk/types/annotation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from ..core.pydantic_utilities import UniversalBaseModel
44
import typing
55
import pydantic
6+
from .annotation_completed_by import AnnotationCompletedBy
67
import datetime as dt
78
from .annotation_last_action import AnnotationLastAction
89
from ..core.pydantic_utilities import IS_PYDANTIC_V2
@@ -25,7 +26,7 @@ class Annotation(UniversalBaseModel):
2526
Time delta from creation time
2627
"""
2728

28-
completed_by: typing.Optional[int] = None
29+
completed_by: typing.Optional[AnnotationCompletedBy] = None
2930
unique_id: typing.Optional[str] = None
3031
was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
3132
"""

0 commit comments

Comments
 (0)