You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Nataneljpwd (via GitHub)" <gi...@apache.org> on 2025/11/03 19:41:25 UTC
Re: [PR] Feature: enhance task-sdk definitions context stub file typing [airflow]
Nataneljpwd commented on code in PR #54421:
URL: https://github.com/apache/airflow/pull/54421#discussion_r2487649174
##########
task-sdk/src/airflow/sdk/definitions/context.py:
##########
@@ -71,12 +77,12 @@ class Context(TypedDict, total=False):
task_instance: RuntimeTaskInstanceProtocol
task_instance_key_str: str
# `templates_dict` is only set in PythonOperator
- templates_dict: dict[str, Any] | None
+ templates_dict: NotRequired[dict[str, Any] | None]
test_mode: bool
ti: RuntimeTaskInstanceProtocol
# triggering_asset_events: Mapping[str, Collection[AssetEvent | AssetEventPydantic]]
triggering_asset_events: Any
- try_number: int | None
+ try_number: NotRequired[int | None]
Review Comment:
Done in previous commit
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org