dabla commented on code in PR #60268:
URL: https://github.com/apache/airflow/pull/60268#discussion_r2678457856
##########
task-sdk/src/airflow/sdk/bases/decorator.py:
##########
@@ -149,6 +150,52 @@ def _find_id_suffixes(dag: DAG) -> Iterator[int]:
return f"{core}__{max(_find_id_suffixes(dag)) + 1}"
+def unwrap_partial(fn):
+ while isinstance(fn, partial):
+ fn = fn.func
+ return fn
+
+
+def unwrap_callable(func):
+ from airflow.sdk.bases.decorator import _TaskDecorator
+ from airflow.sdk.definitions.mappedoperator import OperatorPartial
Review Comment:
No this one is not, it's imported at top of operator module, not decorator.
--
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]