chen0427ok commented on code in PR #59291:
URL: https://github.com/apache/airflow/pull/59291#discussion_r2611568124
##########
task-sdk/src/airflow/sdk/definitions/param.py:
##########
@@ -56,6 +72,7 @@ def __init__(
default: Any = NOTSET,
description: str | None = None,
source: Literal["dag", "task"] | None = None,
+ config_source: dict[str, Any] | None = None,
Review Comment:
That's a great suggestion. Using TypedDict will definitely make the expected
structure much clearer for users and remove the ambiguity of dict[str, Any].
I'll define a ConfigSource TypedDict and apply it.
--
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]