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:
Dropped NotRequired from asset_state — both fields are now symmetrically
`NotRequired`, I also trried using `Required[task_state]` and it would have
needed `total=True` and a broader `Context` refactor which is just cosmetic.
--
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]