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 43a0ecee0ce Add backwards compatibility for `DatasetOrTimeSchedule` 
(#48097)
43a0ecee0ce is described below

commit 43a0ecee0cede9c750e1c768bdb64ac3e66038ea
Author: Kaxil Naik <[email protected]>
AuthorDate: Sun Mar 23 15:35:48 2025 +0530

    Add backwards compatibility for `DatasetOrTimeSchedule` (#48097)
---
 airflow-core/src/airflow/timetables/__init__.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/airflow-core/src/airflow/timetables/__init__.py 
b/airflow-core/src/airflow/timetables/__init__.py
index 13a83393a91..f8ab95f0e99 100644
--- a/airflow-core/src/airflow/timetables/__init__.py
+++ b/airflow-core/src/airflow/timetables/__init__.py
@@ -1,3 +1,4 @@
+#
 # 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
@@ -14,3 +15,16 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+# fmt: off
+"""Timetables."""
+
+from __future__ import annotations
+
+from airflow.utils.deprecation_tools import add_deprecated_classes
+
+__deprecated_classes = {
+    "datasets": {
+        "DatasetOrTimeSchedule": 
"airflow.timetables.assets.AssetOrTimeSchedule",
+    },
+}
+add_deprecated_classes(__deprecated_classes, __name__)

Reply via email to