Pei-Cheng-Yu commented on code in PR #58753:
URL: https://github.com/apache/airflow/pull/58753#discussion_r2567397638
##########
airflow-core/src/airflow/models/trigger.py:
##########
@@ -413,7 +413,7 @@ def handle_event_submit(event: TriggerEvent, *,
task_instance: TaskInstance, ses
from airflow.utils.state import TaskInstanceState
# Get the next kwargs of the task instance, or an empty dictionary if it
doesn't exist
- next_kwargs = task_instance.next_kwargs or {}
+ next_kwargs = cast("dict[str, Any]", task_instance.next_kwargs or {})
Review Comment:
Here, this error generated after running
`prek --color always --verbose --hook-stage manual "mypy-airflow-core"
--all-files` following the instruction from the issue
<img width="548" height="79" alt="image"
src="https://github.com/user-attachments/assets/34f21c4d-5b25-42fb-9316-0b71a0c4305c"
/>
--
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]