potiuk commented on issue #25964:
URL: https://github.com/apache/airflow/issues/25964#issuecomment-1228804928

   This is as expected. Context type definition (airlfow/utils/context.pyi) is 
rather explicit that exception passed in context is possibly Exception, string, 
or KeyboardInterrupt depending on the (ehm) context.
   
   ```
   class Context(TypedDict, total=False):
       conf: AirflowConfigParser
       conn: Any
       dag: DAG
       dag_run: DagRun
       data_interval_end: DateTime
       data_interval_start: DateTime
       ds: str
       ds_nodash: str
       execution_date: DateTime
       exception: Union[KeyboardInterrupt, Exception, str, None]
   ```


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