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

shahar1 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 ecc79a45970 Remove deprecated get_hook property from OSSKeySensor 
(#76127)
ecc79a45970 is described below

commit ecc79a459703a83111e2c9ba9ca48b760aaf85ad
Author: Shahar Epstein <[email protected]>
AuthorDate: Sat Oct 31 13:05:56 2026 +0200

    Remove deprecated get_hook property from OSSKeySensor (#76127)
    
    Remove the get_hook property of OSSKeySensor, deprecated since 2023-09-18 
in #34426. Use the hook property instead.
---
 providers/alibaba/docs/changelog.rst                             | 3 +++
 .../src/airflow/providers/alibaba/cloud/sensors/oss_key.py       | 9 ---------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/providers/alibaba/docs/changelog.rst 
b/providers/alibaba/docs/changelog.rst
index fa091701857..76abaf9f7d9 100644
--- a/providers/alibaba/docs/changelog.rst
+++ b/providers/alibaba/docs/changelog.rst
@@ -26,6 +26,9 @@
 Changelog
 ---------
 
+.. warning::
+  The deprecated ``OSSKeySensor.get_hook`` property has been removed. Use 
``hook`` instead.
+
 3.5.2
 .....
 
diff --git 
a/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/oss_key.py 
b/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/oss_key.py
index 743c01e4f79..20962e8f3fe 100644
--- a/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/oss_key.py
+++ b/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/oss_key.py
@@ -22,9 +22,6 @@ from functools import cached_property
 from typing import TYPE_CHECKING
 from urllib.parse import urlsplit
 
-from deprecated.classic import deprecated
-
-from airflow.exceptions import AirflowProviderDeprecationWarning
 from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
 from airflow.providers.common.compat.sdk import AirflowException, 
BaseSensorOperator
 
@@ -90,12 +87,6 @@ class OSSKeySensor(BaseSensorOperator):
         self.log.info("Poking for key : oss://%s/%s", self.bucket_name, 
self.bucket_key)
         return self.hook.object_exists(key=self.bucket_key, 
bucket_name=self.bucket_name)
 
-    @property
-    @deprecated(reason="use `hook` property instead.", 
category=AirflowProviderDeprecationWarning)
-    def get_hook(self) -> OSSHook:
-        """Create and return an OSSHook."""
-        return self.hook
-
     @cached_property
     def hook(self) -> OSSHook:
         """Create and return an OSSHook."""

Reply via email to