ashb commented on code in PR #47401:
URL: https://github.com/apache/airflow/pull/47401#discussion_r1983571118


##########
task_sdk/src/airflow/sdk/definitions/connection.py:
##########
@@ -56,7 +58,28 @@ class Connection:
 
     def get_uri(self): ...
 
-    def get_hook(self): ...
+    def get_hook(self, *, hook_params=None):
+        """Return hook based on conn_type."""
+        from airflow.providers_manager import ProvidersManager
+        from airflow.utils.module_loading import import_string

Review Comment:
   This'll work for now, but oh boy do we need to find a solution for 
ProvidersManager inside task sdk.
   We might have to move _that_ class in to the SDK.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to