jscheffl commented on code in PR #45008:
URL: https://github.com/apache/airflow/pull/45008#discussion_r1890259386


##########
providers/tests/edge/cli/test_edge_command.py:
##########
@@ -184,7 +229,7 @@ def test_check_running_jobs_success(self, mock_set_state, 
worker_with_job: _Edge
     @patch("airflow.providers.edge.cli.edge_command.jobs_set_state")
     def test_check_running_jobs_failed(self, mock_set_state, worker_with_job: 
_EdgeWorkerCli):
         job = worker_with_job.jobs[0]
-        job.process.generated_returncode = 42  # type: ignore[attr-defined]
+        job.process.generated_returncode = 42  # type: ignore[union-attr]

Review Comment:
   The attribute exists on the mocked object, so this is OK.



-- 
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