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

potiuk 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 9a4164d8cc Remove the remaining references to use the token bypassing 
the Connection in the Slack provider. (#37112)
9a4164d8cc is described below

commit 9a4164d8ccbf730d7152674dded44a4411c43cf5
Author: Andrey Anshin <[email protected]>
AuthorDate: Wed Jan 31 15:38:56 2024 +0400

    Remove the remaining references to use the token bypassing the Connection 
in the Slack provider. (#37112)
---
 airflow/providers/slack/hooks/slack.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/airflow/providers/slack/hooks/slack.py 
b/airflow/providers/slack/hooks/slack.py
index 12d02da748..adbfd0ab88 100644
--- a/airflow/providers/slack/hooks/slack.py
+++ b/airflow/providers/slack/hooks/slack.py
@@ -72,9 +72,6 @@ class SlackHook(BaseHook):
         This hook intend to use `Slack API` connection
         and might not work correctly with `Slack Incoming Webhook` and `HTTP` 
connections.
 
-    Takes both Slack API token directly and connection that has Slack API 
token. If both are
-    supplied, Slack API token will be used. Also exposes the rest of 
slack.WebClient args.
-
     Examples:
      .. code-block:: python
 
@@ -89,6 +86,9 @@ class SlackHook(BaseHook):
         #  For more details check 
https://slack.dev/python-slack-sdk/web/index.html#messaging
         slack_hook.client.chat_postMessage(channel="#random", text="Hello 
world!")
 
+    Additional arguments which are not listed into parameters exposed
+    into the rest of ``slack.WebClient`` constructor args.
+
     :param slack_conn_id: :ref:`Slack connection id <howto/connection:slack>`
         that has Slack API token in the password field.
     :param timeout: The maximum number of seconds the client will wait to 
connect

Reply via email to