potiuk commented on a change in pull request #12558:
URL: https://github.com/apache/airflow/pull/12558#discussion_r537790143
##########
File path: airflow/hooks/base_hook.py
##########
@@ -90,3 +93,78 @@ def get_hook(cls, conn_id: str) -> "BaseHook":
def get_conn(self) -> Any:
"""Returns connection for the hook."""
raise NotImplementedError()
+
+
+class DiscoverableHook(Protocol):
+ """
+ This protocol Just describes what Hook classes that want to be discovered
by ProvidersManager can
+ implement. It is not used by any of the Hooks, but simply methods and
class fields described here
+ are implemented by those Hooks.
Review comment:
Goodl
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]