Skip to content

Commit

Permalink
Resolve mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jan 28, 2025
1 parent a4d259b commit bd9da9b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion slack_sdk/audit_logs/v1/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def _perform_http_request(
)

try:
async with session.request(http_verb, url, **request_kwargs) as res: # type: ignore[arg-type, union-attr] # noqa: E501
async with session.request(http_verb, url, **request_kwargs) as res: # type: ignore[union-attr] # noqa: E501
try:
response_body = await res.text()
retry_response = RetryHttpResponse(
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/web/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,7 @@ async def files_upload_v2(
# To upload multiple files at a time
file_uploads: Optional[List[Dict[str, Any]]] = None,
channel: Optional[str] = None,
channels: Optional[Sequence[str]] = None,
channels: Optional[List[str]] = None,
initial_comment: Optional[str] = None,
thread_ts: Optional[str] = None,
request_file_info: bool = True, # since v3.23, this flag is no longer necessary
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/web/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3747,7 +3747,7 @@ def files_upload_v2(
# To upload multiple files at a time
file_uploads: Optional[List[Dict[str, Any]]] = None,
channel: Optional[str] = None,
channels: Optional[Sequence[str]] = None,
channels: Optional[List[str]] = None,
initial_comment: Optional[str] = None,
thread_ts: Optional[str] = None,
request_file_info: bool = True, # since v3.23, this flag is no longer necessary
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/web/legacy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3759,7 +3759,7 @@ def files_upload_v2(
# To upload multiple files at a time
file_uploads: Optional[List[Dict[str, Any]]] = None,
channel: Optional[str] = None,
channels: Optional[Sequence[str]] = None,
channels: Optional[List[str]] = None,
initial_comment: Optional[str] = None,
thread_ts: Optional[str] = None,
request_file_info: bool = True, # since v3.23, this flag is no longer necessary
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/webhook/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def _perform_http_request(self, *, body: Dict[str, Any], headers: Dict[str
self.logger.debug(f"Sending a request - url: {self.url}, body: {str_body}, headers: {headers}")

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

0 comments on commit bd9da9b

Please sign in to comment.