This is an automated email from the ASF dual-hosted git repository.

potiuk 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 11f1aa5869e Revert "Add deprecation to `airflow/sensors/base.py` 
(#52178)" (#52193)
11f1aa5869e is described below

commit 11f1aa5869e2b953862c7d6c0acf76e49bc9c771
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Jun 24 22:56:45 2025 +0200

    Revert "Add deprecation to `airflow/sensors/base.py` (#52178)" (#52193)
    
    This reverts commit 54f9bff2582628ac1346cdd025e6d3e476bc19b6.
---
 airflow-core/src/airflow/sensors/__init__.py |  6 +-----
 airflow-core/src/airflow/sensors/base.py     | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/airflow-core/src/airflow/sensors/__init__.py 
b/airflow-core/src/airflow/sensors/__init__.py
index db378f45503..62a4037df2f 100644
--- a/airflow-core/src/airflow/sensors/__init__.py
+++ b/airflow-core/src/airflow/sensors/__init__.py
@@ -26,12 +26,8 @@ from __future__ import annotations
 
 from airflow.utils.deprecation_tools import add_deprecated_classes
 
+# TODO: Add definition from Task SDK here and remove `base.py` file
 __deprecated_classes = {
-    "base": {
-        "BaseSensorOperator": "airflow.sdk.bases.sensor.BaseSensorOperator",
-        "PokeReturnValue": "airflow.sdk.bases.sensor.PokeReturnValue",
-        "poke_mode_only": "airflow.sdk.bases.sensor.poke_mode_only",
-    },
     "python":{
         "PythonSensor": 
"airflow.providers.standard.sensors.python.PythonSensor",
     },
diff --git a/airflow-core/src/airflow/sensors/base.py 
b/airflow-core/src/airflow/sensors/base.py
new file mode 100644
index 00000000000..71ae006f534
--- /dev/null
+++ b/airflow-core/src/airflow/sensors/base.py
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+from __future__ import annotations
+
+from airflow.sdk.bases.sensor import (
+    BaseSensorOperator as BaseSensorOperator,
+    PokeReturnValue as PokeReturnValue,
+    poke_mode_only as poke_mode_only,
+)

Reply via email to