uranusjr commented on code in PR #57435:
URL: https://github.com/apache/airflow/pull/57435#discussion_r2471948639


##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -742,7 +742,7 @@ def get_task_duration(ti):
     return {
         "airflowState": AirflowStateRunFacet(
             dagRunState=dag_run_state,
-            tasksState={ti.task_id: ti.state for ti in tis},
+            tasksState={ti.task_id: ti.state for ti in tis},  # type: ignore

Review Comment:
   Actually ti.state _can_ be None, so really the type annotation on 
`tasksState` should include that too. The error is legistimate and should not 
be ignored here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to