@@ -156,7 +156,6 @@ def assets(
156156 label_output_format : Literal ["dict" , "parsed_label" ] = "dict" ,
157157 skipped : Optional [bool ] = None ,
158158 status_in : Optional [list [AssetStatus ]] = None ,
159- status_not_in : Optional [list [AssetStatus ]] = None ,
160159 step_name_in : Optional [list [str ]] = None ,
161160 step_name_not_in : Optional [list [str ]] = None ,
162161 step_status_in : Optional [list [StatusInStep ]] = None ,
@@ -225,7 +224,6 @@ def assets(
225224 label_output_format : Literal ["dict" , "parsed_label" ] = "dict" ,
226225 skipped : Optional [bool ] = None ,
227226 status_in : Optional [list [AssetStatus ]] = None ,
228- status_not_in : Optional [list [AssetStatus ]] = None ,
229227 step_name_in : Optional [list [str ]] = None ,
230228 step_name_not_in : Optional [list [str ]] = None ,
231229 step_status_in : Optional [list [StatusInStep ]] = None ,
@@ -294,7 +292,6 @@ def assets(
294292 label_output_format : Literal ["dict" , "parsed_label" ] = "dict" ,
295293 skipped : Optional [bool ] = None ,
296294 status_in : Optional [list [AssetStatus ]] = None ,
297- status_not_in : Optional [list [AssetStatus ]] = None ,
298295 step_name_in : Optional [list [str ]] = None ,
299296 step_name_not_in : Optional [list [str ]] = None ,
300297 step_status_in : Optional [list [StatusInStep ]] = None ,
@@ -368,9 +365,6 @@ def assets(
368365 status_in: Returned assets should have a status that belongs to that list, if given.
369366 Possible choices: `TODO`, `ONGOING`, `LABELED`, `TO_REVIEW` or `REVIEWED`.
370367 Only applicable if the project is in the WorkflowV1 (legacy).
371- status_not_in: Returned assets should have a status that does not belong to that list, if given.
372- Possible choices: `TODO`, `ONGOING`, `LABELED`, `TO_REVIEW` or `REVIEWED`.
373- Only applicable if the project is in the WorkflowV1 (legacy).
374368 step_name_in: Returned assets are in the step whose name belong to that list, if given.
375369 Only applicable if the project is in WorkflowV2.
376370 step_name_not_in: Returned assets are in the step whose name does not belong to that list, if given.
@@ -480,7 +474,6 @@ def assets(
480474 step_status_in is not None
481475 or step_status_not_in is not None
482476 or status_in is not None
483- or status_not_in is not None
484477 or skipped is not None
485478 )
486479 if has_step_filters or has_status_filters :
@@ -489,7 +482,6 @@ def assets(
489482 asset_workflow_filters = {
490483 "skipped" : skipped ,
491484 "status_in" : status_in ,
492- "status_not_in" : status_not_in ,
493485 "step_name_in" : step_name_in ,
494486 "step_name_not_in" : step_name_not_in ,
495487 "step_status_in" : step_status_in ,
@@ -554,7 +546,6 @@ def assets(
554546 step_id_not_in = step_id_not_in ,
555547 step_status_in = step_status_in ,
556548 step_status_not_in = step_status_not_in ,
557- status_not_in = status_not_in ,
558549 )
559550 assets_gen = asset_use_cases .list_assets (
560551 filters ,
@@ -630,7 +621,6 @@ def count_assets(
630621 step_name_not_in : Optional [list [str ]] = None ,
631622 step_status_in : Optional [list [StatusInStep ]] = None ,
632623 step_status_not_in : Optional [list [StatusInStep ]] = None ,
633- status_not_in : Optional [list [AssetStatus ]] = None ,
634624 ) -> int :
635625 # pylint: disable=line-too-long
636626 """Count and return the number of assets with the given constraints.
@@ -697,9 +687,6 @@ def count_assets(
697687 step_status_not_in: Returned assets have the status of their step that does not belong to that list, if given.
698688 Possible choices: `TO_DO`, `DOING`, `PARTIALLY_DONE`, `REDO`, `DONE`, `SKIPPED`.
699689 Only applicable if the project is in WorkflowV2.
700- status_not_in: Returned assets should have a status that does not belong to that list, if given.
701- Possible choices: `TODO`, `ONGOING`, `LABELED`, `TO_REVIEW` or `REVIEWED`.
702- Only applicable if the project is in WorkflowV1 (legacy).
703690
704691 !!! info "Dates format"
705692 Date strings should have format: "YYYY-MM-DD"
@@ -745,10 +732,7 @@ def count_assets(
745732 step_id_not_in = None
746733 has_step_filters = step_name_in is not None or step_name_not_in is not None
747734 has_status_filters = (
748- status_in is not None
749- or status_not_in is not None
750- or step_status_in is not None
751- or step_status_not_in is not None
735+ status_in is not None or step_status_in is not None or step_status_not_in is not None
752736 )
753737 if has_step_filters or has_status_filters :
754738 project_use_cases = ProjectUseCases (self .kili_api_gateway )
@@ -765,7 +749,6 @@ def count_assets(
765749 "step_status_in" : step_status_in ,
766750 "step_status_not_in" : step_status_not_in ,
767751 "status_in" : status_in ,
768- "status_not_in" : status_not_in ,
769752 },
770753 )
771754
@@ -826,7 +809,6 @@ def count_assets(
826809 step_id_not_in = step_id_not_in ,
827810 step_status_in = step_status_in ,
828811 step_status_not_in = step_status_not_in ,
829- status_not_in = status_not_in ,
830812 )
831813 asset_use_cases = AssetUseCases (self .kili_api_gateway )
832814 return asset_use_cases .count_assets (filters )
0 commit comments