Skip to content

Commit c4b8cff

Browse files
fix: FIT-1348: some API docs paths for Project endpoints are broken (#750)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: robot-ci-heartex <robot-ci-heartex@users.noreply.github.com>
1 parent 7c283be commit c4b8cff

9 files changed

Lines changed: 47 additions & 47 deletions

File tree

reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8977,7 +8977,7 @@ client.projects.create()
89778977
<dl>
89788978
<dd>
89798979

8980-
**control_weights:** `typing.Optional[typing.Any]` — Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
8980+
**control_weights:** `typing.Optional[typing.Dict[str, typing.Any]]` — Dict of weights for each control tag in metric calculation.
89818981

89828982
</dd>
89838983
</dl>
@@ -9663,7 +9663,7 @@ client.projects.update(
96639663
<dl>
96649664
<dd>
96659665

9666-
**control_weights:** `typing.Optional[typing.Any]` — Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
9666+
**control_weights:** `typing.Optional[typing.Dict[str, typing.Any]]` — Dict of weights for each control tag in metric calculation.
96679667

96689668
</dd>
96699669
</dl>

src/label_studio_sdk/projects/client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def create(
161161
*,
162162
annotator_evaluation_enabled: typing.Optional[bool] = OMIT,
163163
color: typing.Optional[str] = OMIT,
164-
control_weights: typing.Optional[typing.Any] = OMIT,
164+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
165165
created_by: typing.Optional[UserSimpleRequest] = OMIT,
166166
description: typing.Optional[str] = OMIT,
167167
enable_empty_annotation: typing.Optional[bool] = OMIT,
@@ -201,8 +201,8 @@ def create(
201201
202202
color : typing.Optional[str]
203203
204-
control_weights : typing.Optional[typing.Any]
205-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
204+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
205+
Dict of weights for each control tag in metric calculation.
206206
207207
created_by : typing.Optional[UserSimpleRequest]
208208
Project owner
@@ -498,7 +498,7 @@ def update(
498498
assignment_settings: typing.Optional[AssignmentSettingsRequest] = OMIT,
499499
color: typing.Optional[str] = OMIT,
500500
comment_classification_config: typing.Optional[str] = OMIT,
501-
control_weights: typing.Optional[typing.Any] = OMIT,
501+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
502502
created_by: typing.Optional[UserSimpleRequest] = OMIT,
503503
custom_script: typing.Optional[str] = OMIT,
504504
custom_task_lock_ttl: typing.Optional[int] = OMIT,
@@ -572,8 +572,8 @@ def update(
572572
573573
comment_classification_config : typing.Optional[str]
574574
575-
control_weights : typing.Optional[typing.Any]
576-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
575+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
576+
Dict of weights for each control tag in metric calculation.
577577
578578
created_by : typing.Optional[UserSimpleRequest]
579579
Project owner
@@ -1232,7 +1232,7 @@ async def create(
12321232
*,
12331233
annotator_evaluation_enabled: typing.Optional[bool] = OMIT,
12341234
color: typing.Optional[str] = OMIT,
1235-
control_weights: typing.Optional[typing.Any] = OMIT,
1235+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
12361236
created_by: typing.Optional[UserSimpleRequest] = OMIT,
12371237
description: typing.Optional[str] = OMIT,
12381238
enable_empty_annotation: typing.Optional[bool] = OMIT,
@@ -1272,8 +1272,8 @@ async def create(
12721272
12731273
color : typing.Optional[str]
12741274
1275-
control_weights : typing.Optional[typing.Any]
1276-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
1275+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
1276+
Dict of weights for each control tag in metric calculation.
12771277
12781278
created_by : typing.Optional[UserSimpleRequest]
12791279
Project owner
@@ -1601,7 +1601,7 @@ async def update(
16011601
assignment_settings: typing.Optional[AssignmentSettingsRequest] = OMIT,
16021602
color: typing.Optional[str] = OMIT,
16031603
comment_classification_config: typing.Optional[str] = OMIT,
1604-
control_weights: typing.Optional[typing.Any] = OMIT,
1604+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
16051605
created_by: typing.Optional[UserSimpleRequest] = OMIT,
16061606
custom_script: typing.Optional[str] = OMIT,
16071607
custom_task_lock_ttl: typing.Optional[int] = OMIT,
@@ -1675,8 +1675,8 @@ async def update(
16751675
16761676
comment_classification_config : typing.Optional[str]
16771677
1678-
control_weights : typing.Optional[typing.Any]
1679-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
1678+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
1679+
Dict of weights for each control tag in metric calculation.
16801680
16811681
created_by : typing.Optional[UserSimpleRequest]
16821682
Project owner

src/label_studio_sdk/projects/raw_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def create(
160160
*,
161161
annotator_evaluation_enabled: typing.Optional[bool] = OMIT,
162162
color: typing.Optional[str] = OMIT,
163-
control_weights: typing.Optional[typing.Any] = OMIT,
163+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
164164
created_by: typing.Optional[UserSimpleRequest] = OMIT,
165165
description: typing.Optional[str] = OMIT,
166166
enable_empty_annotation: typing.Optional[bool] = OMIT,
@@ -200,8 +200,8 @@ def create(
200200
201201
color : typing.Optional[str]
202202
203-
control_weights : typing.Optional[typing.Any]
204-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
203+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
204+
Dict of weights for each control tag in metric calculation.
205205
206206
created_by : typing.Optional[UserSimpleRequest]
207207
Project owner
@@ -527,7 +527,7 @@ def update(
527527
assignment_settings: typing.Optional[AssignmentSettingsRequest] = OMIT,
528528
color: typing.Optional[str] = OMIT,
529529
comment_classification_config: typing.Optional[str] = OMIT,
530-
control_weights: typing.Optional[typing.Any] = OMIT,
530+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
531531
created_by: typing.Optional[UserSimpleRequest] = OMIT,
532532
custom_script: typing.Optional[str] = OMIT,
533533
custom_task_lock_ttl: typing.Optional[int] = OMIT,
@@ -601,8 +601,8 @@ def update(
601601
602602
comment_classification_config : typing.Optional[str]
603603
604-
control_weights : typing.Optional[typing.Any]
605-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
604+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
605+
Dict of weights for each control tag in metric calculation.
606606
607607
created_by : typing.Optional[UserSimpleRequest]
608608
Project owner
@@ -1285,7 +1285,7 @@ async def create(
12851285
*,
12861286
annotator_evaluation_enabled: typing.Optional[bool] = OMIT,
12871287
color: typing.Optional[str] = OMIT,
1288-
control_weights: typing.Optional[typing.Any] = OMIT,
1288+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
12891289
created_by: typing.Optional[UserSimpleRequest] = OMIT,
12901290
description: typing.Optional[str] = OMIT,
12911291
enable_empty_annotation: typing.Optional[bool] = OMIT,
@@ -1325,8 +1325,8 @@ async def create(
13251325
13261326
color : typing.Optional[str]
13271327
1328-
control_weights : typing.Optional[typing.Any]
1329-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
1328+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
1329+
Dict of weights for each control tag in metric calculation.
13301330
13311331
created_by : typing.Optional[UserSimpleRequest]
13321332
Project owner
@@ -1654,7 +1654,7 @@ async def update(
16541654
assignment_settings: typing.Optional[AssignmentSettingsRequest] = OMIT,
16551655
color: typing.Optional[str] = OMIT,
16561656
comment_classification_config: typing.Optional[str] = OMIT,
1657-
control_weights: typing.Optional[typing.Any] = OMIT,
1657+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
16581658
created_by: typing.Optional[UserSimpleRequest] = OMIT,
16591659
custom_script: typing.Optional[str] = OMIT,
16601660
custom_task_lock_ttl: typing.Optional[int] = OMIT,
@@ -1728,8 +1728,8 @@ async def update(
17281728
17291729
comment_classification_config : typing.Optional[str]
17301730
1731-
control_weights : typing.Optional[typing.Any]
1732-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
1731+
control_weights : typing.Optional[typing.Dict[str, typing.Any]]
1732+
Dict of weights for each control tag in metric calculation.
17331733
17341734
created_by : typing.Optional[UserSimpleRequest]
17351735
Project owner

src/label_studio_sdk/types/all_roles_project_list.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class AllRolesProjectList(UncheckedBaseModel):
5353
Flag to detect is project ready for bulk annotation
5454
"""
5555

56-
control_weights: typing.Optional[typing.Any] = pydantic.Field(default=None)
56+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
5757
"""
58-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
58+
Dict of weights for each control tag in metric calculation.
5959
"""
6060

6161
created_at: typing.Optional[dt.datetime] = None
@@ -70,7 +70,7 @@ class AllRolesProjectList(UncheckedBaseModel):
7070
TTL in seconds for task reservations, on new and existing tasks
7171
"""
7272

73-
data_types: typing.Optional[typing.Any] = None
73+
data_types: typing.Optional[typing.Dict[str, typing.Any]] = None
7474
description: typing.Optional[str] = pydantic.Field(default=None)
7575
"""
7676
Project description
@@ -141,7 +141,7 @@ class AllRolesProjectList(UncheckedBaseModel):
141141
num_tasks_with_annotations: typing.Optional[int] = None
142142
organization: typing.Optional[int] = None
143143
overlap_cohort_percentage: typing.Optional[int] = None
144-
parsed_label_config: typing.Optional[typing.Any] = pydantic.Field(default=None)
144+
parsed_label_config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
145145
"""
146146
JSON-formatted labeling configuration
147147
"""

src/label_studio_sdk/types/lse_project.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class LseProject(UncheckedBaseModel):
5050
Flag to detect is project ready for bulk annotation
5151
"""
5252

53-
control_weights: typing.Optional[typing.Any] = pydantic.Field(default=None)
53+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
5454
"""
55-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
55+
Dict of weights for each control tag in metric calculation.
5656
"""
5757

5858
created_at: typing.Optional[dt.datetime] = None
@@ -67,7 +67,7 @@ class LseProject(UncheckedBaseModel):
6767
TTL in seconds for task reservations, on new and existing tasks
6868
"""
6969

70-
data_types: typing.Optional[typing.Any] = None
70+
data_types: typing.Optional[typing.Dict[str, typing.Any]] = None
7171
description: typing.Optional[str] = pydantic.Field(default=None)
7272
"""
7373
Project description
@@ -141,7 +141,7 @@ class LseProject(UncheckedBaseModel):
141141
num_tasks_with_annotations: typing.Optional[int] = None
142142
organization: typing.Optional[int] = None
143143
overlap_cohort_percentage: typing.Optional[int] = None
144-
parsed_label_config: typing.Optional[typing.Any] = pydantic.Field(default=None)
144+
parsed_label_config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
145145
"""
146146
JSON-formatted labeling configuration
147147
"""

src/label_studio_sdk/types/lse_project_create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class LseProjectCreate(UncheckedBaseModel):
3333
Flag to detect is project ready for bulk annotation
3434
"""
3535

36-
control_weights: typing.Optional[typing.Any] = pydantic.Field(default=None)
36+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
3737
"""
38-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
38+
Dict of weights for each control tag in metric calculation.
3939
"""
4040

4141
created_at: typing.Optional[dt.datetime] = None
@@ -112,7 +112,7 @@ class LseProjectCreate(UncheckedBaseModel):
112112

113113
organization: typing.Optional[int] = None
114114
overlap_cohort_percentage: typing.Optional[int] = None
115-
parsed_label_config: typing.Optional[typing.Any] = pydantic.Field(default=None)
115+
parsed_label_config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
116116
"""
117117
JSON-formatted labeling configuration
118118
"""

src/label_studio_sdk/types/lse_project_response.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class LseProjectResponse(UncheckedBaseModel):
5050
Flag to detect is project ready for bulk annotation
5151
"""
5252

53-
control_weights: typing.Optional[typing.Any] = pydantic.Field(default=None)
53+
control_weights: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
5454
"""
55-
Dict of weights for each control tag in metric calculation. Each control tag (e.g. label or choice) will have it's own key in control weight dict with weight for each label and overall weight.For example, if bounding box annotation with control tag named my_bbox should be included with 0.33 weight in agreement calculation, and the first label Car should be twice more important than Airplaine, then you have to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
55+
Dict of weights for each control tag in metric calculation.
5656
"""
5757

5858
created_at: typing.Optional[dt.datetime] = None
@@ -67,7 +67,7 @@ class LseProjectResponse(UncheckedBaseModel):
6767
TTL in seconds for task reservations, on new and existing tasks
6868
"""
6969

70-
data_types: typing.Optional[typing.Any] = None
70+
data_types: typing.Optional[typing.Dict[str, typing.Any]] = None
7171
description: typing.Optional[str] = pydantic.Field(default=None)
7272
"""
7373
Project description
@@ -141,7 +141,7 @@ class LseProjectResponse(UncheckedBaseModel):
141141
num_tasks_with_annotations: typing.Optional[int] = None
142142
organization: typing.Optional[int] = None
143143
overlap_cohort_percentage: typing.Optional[int] = None
144-
parsed_label_config: typing.Optional[typing.Any] = pydantic.Field(default=None)
144+
parsed_label_config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
145145
"""
146146
JSON-formatted labeling configuration
147147
"""

0 commit comments

Comments
 (0)