Skip to content

Commit bd9da9b

Browse files
committed
Resolve mypy errors
1 parent a4d259b commit bd9da9b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

slack_sdk/audit_logs/v1/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ async def _perform_http_request(
279279
)
280280

281281
try:
282-
async with session.request(http_verb, url, **request_kwargs) as res: # type: ignore[arg-type, union-attr] # noqa: E501
282+
async with session.request(http_verb, url, **request_kwargs) as res: # type: ignore[union-attr] # noqa: E501
283283
try:
284284
response_body = await res.text()
285285
retry_response = RetryHttpResponse(

slack_sdk/web/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3757,7 +3757,7 @@ async def files_upload_v2(
37573757
# To upload multiple files at a time
37583758
file_uploads: Optional[List[Dict[str, Any]]] = None,
37593759
channel: Optional[str] = None,
3760-
channels: Optional[Sequence[str]] = None,
3760+
channels: Optional[List[str]] = None,
37613761
initial_comment: Optional[str] = None,
37623762
thread_ts: Optional[str] = None,
37633763
request_file_info: bool = True, # since v3.23, this flag is no longer necessary

slack_sdk/web/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3747,7 +3747,7 @@ def files_upload_v2(
37473747
# To upload multiple files at a time
37483748
file_uploads: Optional[List[Dict[str, Any]]] = None,
37493749
channel: Optional[str] = None,
3750-
channels: Optional[Sequence[str]] = None,
3750+
channels: Optional[List[str]] = None,
37513751
initial_comment: Optional[str] = None,
37523752
thread_ts: Optional[str] = None,
37533753
request_file_info: bool = True, # since v3.23, this flag is no longer necessary

slack_sdk/web/legacy_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3759,7 +3759,7 @@ def files_upload_v2(
37593759
# To upload multiple files at a time
37603760
file_uploads: Optional[List[Dict[str, Any]]] = None,
37613761
channel: Optional[str] = None,
3762-
channels: Optional[Sequence[str]] = None,
3762+
channels: Optional[List[str]] = None,
37633763
initial_comment: Optional[str] = None,
37643764
thread_ts: Optional[str] = None,
37653765
request_file_info: bool = True, # since v3.23, this flag is no longer necessary

slack_sdk/webhook/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def _perform_http_request(self, *, body: Dict[str, Any], headers: Dict[str
192192
self.logger.debug(f"Sending a request - url: {self.url}, body: {str_body}, headers: {headers}")
193193

194194
try:
195-
async with session.request("POST", self.url, **request_kwargs) as res: # type: ignore[arg-type, union-attr] # noqa: E501
195+
async with session.request("POST", self.url, **request_kwargs) as res: # type: ignore[union-attr] # noqa: E501
196196
try:
197197
response_body = await res.text()
198198
retry_response = RetryHttpResponse(

0 commit comments

Comments
 (0)