This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push: new 26a7c12e86c Avoid importing from sdk when deprecating using utils (#50435) 26a7c12e86c is described below commit 26a7c12e86c9a3460cf408eb22985ade763ea79f Author: Amogh Desai <amoghrajesh1...@gmail.com> AuthorDate: Wed May 14 18:30:03 2025 +0530 Avoid importing from sdk when deprecating using utils (#50435) --- airflow-core/src/airflow/decorators/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airflow-core/src/airflow/decorators/__init__.py b/airflow-core/src/airflow/decorators/__init__.py index 86f82799796..0753a43cb57 100644 --- a/airflow-core/src/airflow/decorators/__init__.py +++ b/airflow-core/src/airflow/decorators/__init__.py @@ -17,8 +17,6 @@ from __future__ import annotations from airflow.sdk.definitions.decorators import ( - TaskDecorator as TaskDecorator, - TaskDecoratorCollection as TaskDecoratorCollection, dag as dag, setup as setup, task as task, @@ -32,6 +30,7 @@ __deprecated_classes = { "DecoratedMappedOperator": "airflow.sdk.bases.decorator.DecoratedMappedOperator", "DecoratedOperator": "airflow.sdk.bases.decorator.DecoratedOperator", "TaskDecorator": "airflow.sdk.bases.decorator.TaskDecorator", + "TaskDecoratorCollection": "airflow.sdk.definitions.decorators.TaskDecoratorCollection", "get_unique_task_id": "airflow.sdk.bases.decorator.get_unique_task_id", "task_decorator_factory": "airflow.sdk.bases.decorator.task_decorator_factory", },