@@ -265,7 +265,11 @@ def download_full_annotation_archive(self, project_id: str, dest_path: str) -> s
265
265
ダウンロード元のURL
266
266
267
267
"""
268
- warnings .warn ("deprecated" , FutureWarning )
268
+ warnings .warn (
269
+ "annofabapi.Wrapper.download_full_annotation_archive() is deprecated and will be removed." ,
270
+ FutureWarning ,
271
+ stacklevel = 2 ,
272
+ )
269
273
_ , response = self .api .get_archive_full_with_pro_id (project_id )
270
274
url = response .headers ["Location" ]
271
275
response2 = _download (url , dest_path )
@@ -1014,7 +1018,9 @@ def get_task_statistics(self, project_id: str) -> List[Any]:
1014
1018
1015
1019
1016
1020
"""
1017
- warnings .warn ("deprecated" , FutureWarning )
1021
+ warnings .warn (
1022
+ "annofabapi.Wrapper.get_task_statistics() is deprecated and will be removed." , FutureWarning , stacklevel = 2
1023
+ )
1018
1024
_ , response = self .api .get_task_statistics (project_id )
1019
1025
result = self ._request_location_header_url (response )
1020
1026
if result is not None :
@@ -1034,7 +1040,11 @@ def get_account_statistics(self, project_id: str) -> List[Any]:
1034
1040
Returns:
1035
1041
1036
1042
"""
1037
- warnings .warn ("deprecated" , FutureWarning )
1043
+ warnings .warn (
1044
+ "annofabapi.Wrapper.get_account_statistics() is deprecated and will be removed." ,
1045
+ FutureWarning ,
1046
+ stacklevel = 2 ,
1047
+ )
1038
1048
_ , response = self .api .get_account_statistics (project_id )
1039
1049
result = self ._request_location_header_url (response )
1040
1050
if result is not None :
@@ -1054,7 +1064,11 @@ def get_inspection_statistics(self, project_id: str) -> List[Any]:
1054
1064
Returns:
1055
1065
1056
1066
"""
1057
- warnings .warn ("deprecated" , FutureWarning )
1067
+ warnings .warn (
1068
+ "annofabapi.Wrapper.get_inspection_statistics() is deprecated and will be removed." ,
1069
+ FutureWarning ,
1070
+ stacklevel = 2 ,
1071
+ )
1058
1072
_ , response = self .api .get_inspection_statistics (project_id )
1059
1073
result = self ._request_location_header_url (response )
1060
1074
if result is not None :
@@ -1074,7 +1088,11 @@ def get_task_phase_statistics(self, project_id: str) -> List[Any]:
1074
1088
Returns:
1075
1089
1076
1090
"""
1077
- warnings .warn ("deprecated" , FutureWarning )
1091
+ warnings .warn (
1092
+ "annofabapi.Wrapper.get_task_phase_statistics() is deprecated and will be removed." ,
1093
+ FutureWarning ,
1094
+ stacklevel = 2 ,
1095
+ )
1078
1096
_ , response = self .api .get_task_phase_statistics (project_id )
1079
1097
result = self ._request_location_header_url (response )
1080
1098
if result is not None :
@@ -1113,7 +1131,11 @@ def get_worktime_statistics(self, project_id: str) -> List[Any]:
1113
1131
タスク作業時間集計
1114
1132
1115
1133
"""
1116
- warnings .warn ("deprecated" , FutureWarning )
1134
+ warnings .warn (
1135
+ "annofabapi.Wrapper.get_worktime_statistics() is deprecated and will be removed." ,
1136
+ FutureWarning ,
1137
+ stacklevel = 2 ,
1138
+ )
1117
1139
_ , response = self .api .get_worktime_statistics (project_id )
1118
1140
result = self ._request_location_header_url (response )
1119
1141
if result is not None :
@@ -2394,7 +2416,11 @@ def get_labor_control_worktime(
2394
2416
* plan_worktime:予定作業時間[hour]
2395
2417
* working_description:実績に関するコメント(optional)
2396
2418
"""
2397
- warnings .warn ("deprecated" , FutureWarning )
2419
+ warnings .warn (
2420
+ "annofabapi.Wrapper.get_labor_control_worktime() is deprecated and will be removed." ,
2421
+ FutureWarning ,
2422
+ stacklevel = 2 ,
2423
+ )
2398
2424
2399
2425
def _to_new_data (labor : Dict [str , Any ]) -> Dict [str , Any ]:
2400
2426
labor ["actual_worktime" ] = self ._get_actual_worktime_hour_from_labor (labor )
@@ -2474,7 +2500,11 @@ def get_labor_control_availability(
2474
2500
* date
2475
2501
* availability:予定稼働時間[hour]
2476
2502
"""
2477
- warnings .warn ("deprecated" , FutureWarning )
2503
+ warnings .warn (
2504
+ "annofabapi.Wrapper.get_labor_control_availability() is deprecated and will be removed." ,
2505
+ FutureWarning ,
2506
+ stacklevel = 2 ,
2507
+ )
2478
2508
2479
2509
def _to_new_data (labor : Dict [str , Any ]) -> Dict [str , Any ]:
2480
2510
labor ["availability" ] = self ._get_plan_worktime_hour_from_labor (labor )
0 commit comments