Skip to content

Commit fff89e7

Browse files
committed
update
1 parent 073800c commit fff89e7

File tree

3 files changed

+96
-99
lines changed

3 files changed

+96
-99
lines changed

Pipfile.lock

+93-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annofabapi/wrapper.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import annofabapi.utils
1313
from annofabapi import AnnofabApi
1414
from annofabapi.exceptions import AnnofabApiException
15-
from annofabapi.models import (AnnotationSpecsV1, InputData, Inspection, InspectionStatus, Instruction, JobInfo, JobType,
16-
MyOrganization, Organization, OrganizationMember, Project, ProjectMember,
15+
from annofabapi.models import (AnnotationSpecsV1, InputData, Inspection, InspectionStatus, Instruction, JobInfo,
16+
JobType, MyOrganization, Organization, OrganizationMember, Project, ProjectMember,
1717
SupplementaryData, Task)
1818
from annofabapi.utils import allow_404_error
1919

@@ -174,8 +174,6 @@ def copy_annotation_specs(self, src_project_id: str, dest_project_id: str,
174174
"""
175175
アノテーション仕様を、別のプロジェクトにコピーする。
176176
177-
.. deprecated:: XXXXX
178-
179177
Note:
180178
誤って実行しないようにすること
181179
@@ -187,7 +185,6 @@ def copy_annotation_specs(self, src_project_id: str, dest_project_id: str,
187185
Returns:
188186
put_annotation_specsのContent
189187
"""
190-
warnings.warn("deprecated", DeprecationWarning)
191188
src_annotation_specs = self.api.get_annotation_specs(src_project_id)[0]
192189

193190
if comment is None:

tests/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def test_task(self):
347347
assert len(wrapper.get_all_tasks(project_id, query_params={'task_id': test_task_id})) == 1
348348

349349
print(f"assign_tasks")
350-
request_body = {"request_type":{"task_ids":[test_task_id], "user_id": annofab_user_id, "_type": "Selection"}}
350+
request_body = {"request_type": {"task_ids": [test_task_id], "user_id": annofab_user_id, "_type": "Selection"}}
351351
assert type(api.assign_tasks(project_id, request_body=request_body)[0]) == list
352352

353353
print(f"operate_task")

0 commit comments

Comments
 (0)