@@ -2475,7 +2475,9 @@ def add_annotation_bbox_to_image(
24752475 image_name ,
24762476 )
24772477
2478- controller .upload_image_annotations (* extract_project_folder (project ), image_name , annotations )
2478+ controller .upload_image_annotations (
2479+ * extract_project_folder (project ), image_name , annotations
2480+ )
24792481
24802482
24812483@Trackable
@@ -2509,10 +2511,13 @@ def add_annotation_point_to_image(
25092511 annotations = add_annotation_point_to_json (
25102512 annotations , point , annotation_class_name , annotation_class_attributes , error
25112513 )
2512- controller .upload_image_annotations (* extract_project_folder (project ), image_name , annotations )
2514+ controller .upload_image_annotations (
2515+ * extract_project_folder (project ), image_name , annotations
2516+ )
25132517
25142518
25152519@Trackable
2520+ @validate_arguments
25162521def add_annotation_comment_to_image (
25172522 project : NotEmptyStr ,
25182523 image_name : NotEmptyStr ,
@@ -2538,11 +2543,19 @@ def add_annotation_comment_to_image(
25382543 """
25392544 annotations = get_image_annotations (project , image_name )["annotation_json" ]
25402545 annotations = add_annotation_comment_to_json (
2541- annotations , comment_text , comment_coords , comment_author , resolved = resolved , image_name = image_name
2546+ annotations ,
2547+ comment_text ,
2548+ comment_coords ,
2549+ comment_author ,
2550+ resolved = resolved ,
2551+ image_name = image_name ,
2552+ )
2553+ controller .upload_image_annotations (
2554+ * extract_project_folder (project ), image_name , annotations
25422555 )
2543- controller .upload_image_annotations (* extract_project_folder (project ), image_name , annotations )
25442556
25452557
2558+ @Trackable
25462559@validate_arguments
25472560def search_images_all_folders (
25482561 project : NotEmptyStr ,
0 commit comments