Skip to content

Commit f3cac41

Browse files
committed
Fix validation errors
1 parent 6f85a9d commit f3cac41

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

slack/web/client.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,15 +1462,22 @@ def mpim_replies(
14621462
return self.api_call("mpim.replies", http_verb="GET", params=kwargs)
14631463

14641464
def oauth_v2_access(
1465-
self, *, client_id: str, client_secret: str, code: str, redirect_uri: Optional[str] = None, **kwargs
1465+
self,
1466+
*,
1467+
client_id: str,
1468+
client_secret: str,
1469+
code: str,
1470+
redirect_uri: Optional[str] = None,
1471+
**kwargs
14661472
) -> Union[Future, SlackResponse]:
14671473
"""Exchanges a temporary OAuth verifier code for an access token.
14681474
14691475
Args:
14701476
client_id (str): Issued when you created your application. e.g. '4b39e9-752c4'
14711477
client_secret (str): Issued when you created your application. e.g. '33fea0113f5b1'
14721478
code (str): The code param returned via the OAuth callback. e.g. 'ccdaa72ad'
1473-
redirect_uri (optional str): Must match the originally submitted URI (if one was sent). e.g. 'https://example.com'
1479+
redirect_uri (optional str): Must match the originally submitted URI
1480+
(if one was sent). e.g. 'https://example.com'
14741481
"""
14751482
if redirect_uri is not None:
14761483
kwargs.update({"redirect_uri": redirect_uri})
@@ -1482,15 +1489,22 @@ def oauth_v2_access(
14821489
)
14831490

14841491
def oauth_access(
1485-
self, *, client_id: str, client_secret: str, code: str, redirect_uri: Optional[str] = None, **kwargs
1492+
self,
1493+
*,
1494+
client_id: str,
1495+
client_secret: str,
1496+
code: str,
1497+
redirect_uri: Optional[str] = None,
1498+
**kwargs
14861499
) -> Union[Future, SlackResponse]:
14871500
"""Exchanges a temporary OAuth verifier code for an access token.
14881501
14891502
Args:
14901503
client_id (str): Issued when you created your application. e.g. '4b39e9-752c4'
14911504
client_secret (str): Issued when you created your application. e.g. '33fea0113f5b1'
14921505
code (str): The code param returned via the OAuth callback. e.g. 'ccdaa72ad'
1493-
redirect_uri (optional str): Must match the originally submitted URI (if one was sent). e.g. 'https://example.com'
1506+
redirect_uri (optional str): Must match the originally submitted URI
1507+
(if one was sent). e.g. 'https://example.com'
14941508
"""
14951509
if redirect_uri is not None:
14961510
kwargs.update({"redirect_uri": redirect_uri})

0 commit comments

Comments
 (0)