You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by xd...@apache.org on 2022/12/30 19:31:44 UTC
[airflow] branch main updated: Remove outdated comments from base hook (#28649)
This is an automated email from the ASF dual-hosted git repository.
xddeng 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 29a74699eb Remove outdated comments from base hook (#28649)
29a74699eb is described below
commit 29a74699eb740f2df3bc6160fe3d747b175c76cd
Author: Pankaj Singh <98...@users.noreply.github.com>
AuthorDate: Sat Dec 31 01:01:26 2022 +0530
Remove outdated comments from base hook (#28649)
---
airflow/hooks/base.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/airflow/hooks/base.py b/airflow/hooks/base.py
index 85467e7312..9298a68688 100644
--- a/airflow/hooks/base.py
+++ b/airflow/hooks/base.py
@@ -81,8 +81,6 @@ class BaseHook(LoggingMixin):
:param conn_id: connection id
:return: default hook for this connection
"""
- # TODO: set method return type to BaseHook class when on 3.7+.
- # See https://stackoverflow.com/a/33533514/3066428
connection = cls.get_connection(conn_id)
return connection.get_hook()