@@ -111,7 +111,6 @@ def api_call( # skipcq: PYL-R1710
111111 SlackRequestError: Json data can only be submitted as
112112 POST requests.
113113 """
114-
115114 api_url = _get_url (self .base_url , api_method )
116115 headers = headers or {}
117116 headers .update (self .headers )
@@ -165,6 +164,7 @@ async def _send(self, http_verb: str, api_url: str, req_args: dict) -> SlackResp
165164 'channel': '#random'
166165 }
167166 }
167+
168168 Returns:
169169 The response parsed into a SlackResponse object.
170170 """
@@ -190,6 +190,7 @@ async def _send(self, http_verb: str, api_url: str, req_args: dict) -> SlackResp
190190
191191 async def _request (self , * , http_verb , api_url , req_args ) -> Dict [str , any ]:
192192 """Submit the HTTP request with the running session or a new session.
193+
193194 Returns:
194195 A dictionary of the response data.
195196 """
@@ -239,7 +240,7 @@ def _sync_send(self, api_url, req_args) -> SlackResponse:
239240 )
240241
241242 def _request_for_pagination (self , api_url , req_args ) -> Dict [str , any ]:
242- """This method is supposed to be used only for SlackResponse pagination
243+ """This method is supposed to be used only for SlackResponse pagination.
243244
244245 You can paginate using Python's for iterator as below:
245246
@@ -463,9 +464,9 @@ def _build_urllib_request_headers(
463464
464465 @staticmethod
465466 def validate_slack_signature (* , signing_secret : str , data : str , timestamp : str , signature : str ) -> bool :
466- """
467- Slack creates a unique string for your app and shares it with you. Verify
468- requests from Slack with confidence by verifying signatures using your
467+ """Slack creates a unique string for your app and shares it with you.
468+
469+ Verify requests from Slack with confidence by verifying signatures using your
469470 signing secret.
470471
471472 On each HTTP request that Slack sends, we add an X-Slack-Signature HTTP
0 commit comments