amoghrajesh commented on code in PR #66160:
URL: https://github.com/apache/airflow/pull/66160#discussion_r3180636099


##########
task-sdk/src/airflow/sdk/definitions/context.py:
##########
@@ -72,6 +72,8 @@ class Context(TypedDict, total=False):
     task_reschedule_count: int
     task_instance: RuntimeTaskInstanceProtocol
     task_instance_key_str: str
+    task_state: TaskStateAccessor

Review Comment:
   Good point. Since task_state is always available for task instances, marked 
it `Required[TaskStateAccessor]` — `asset_state` stays `NotRequired` since it 
is only set when there is a single concrete inlet.



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