@@ -57,13 +57,13 @@ def pytask_execute_task_setup(session: Session, task: PTask) -> None:
5757 if is_unchanged and not session .config ["force" ]:
5858 collect_provisional_products (session , task )
5959 if explain_mode and hasattr (task , "_explanation" ):
60- task ._explanation .outcome = TaskOutcome .SKIP_UNCHANGED # type: ignore[attr-defined]
60+ task ._explanation .outcome = TaskOutcome .SKIP_UNCHANGED
6161 raise SkippedUnchanged
6262
6363 is_skipped = has_mark (task , "skip" )
6464 if is_skipped :
6565 if explain_mode and hasattr (task , "_explanation" ):
66- task ._explanation .outcome = TaskOutcome .SKIP # type: ignore[attr-defined]
66+ task ._explanation .outcome = TaskOutcome .SKIP
6767 raise Skipped
6868
6969 skipif_marks = get_marks (task , "skipif" )
@@ -73,7 +73,7 @@ def pytask_execute_task_setup(session: Session, task: PTask) -> None:
7373 should_skip = any (arg [0 ] for arg in marker_args )
7474 if should_skip :
7575 if explain_mode and hasattr (task , "_explanation" ):
76- task ._explanation .outcome = TaskOutcome .SKIP # type: ignore[attr-defined]
76+ task ._explanation .outcome = TaskOutcome .SKIP
7777 raise Skipped (message )
7878
7979 ancestor_failed_marks = get_marks (task , "skip_ancestor_failed" )
@@ -83,7 +83,7 @@ def pytask_execute_task_setup(session: Session, task: PTask) -> None:
8383 for mark in ancestor_failed_marks
8484 )
8585 if explain_mode and hasattr (task , "_explanation" ):
86- task ._explanation .outcome = TaskOutcome .SKIP_PREVIOUS_FAILED # type: ignore[attr-defined]
86+ task ._explanation .outcome = TaskOutcome .SKIP_PREVIOUS_FAILED
8787 raise SkippedAncestorFailed (message )
8888
8989
0 commit comments