Skip to content

Commit

Permalink
use AirflowProviderDeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Sep 17, 2023
1 parent 4294b51 commit 02fa10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/docker/operators/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def hook(self) -> DockerHook:
timeout=self.timeout,
)

@deprecated(reason="use `hook` property instead.")
@deprecated(reason="use `hook` property instead.", category=AirflowProviderDeprecationWarning)
def get_hook(self) -> DockerHook:
"""Create and return an DockerHook (cached)."""
return self.hook
Expand Down

0 comments on commit 02fa10e

Please sign in to comment.