kaxil commented on code in PR #60268:
URL: https://github.com/apache/airflow/pull/60268#discussion_r2677523914
##########
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
Review Comment:
This class is in the same file ! :) We don't need to import 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]