Skip to content

Commit 95deef4

Browse files
committed
style: order imported arguments
1 parent fe8094a commit 95deef4

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

slack_sdk/web/async_client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,24 @@
1414
import os
1515
import warnings
1616
from io import IOBase
17-
from typing import Union, Sequence, Optional, Dict, Any, List
17+
from typing import Any, Dict, List, Optional, Sequence, Union
1818

1919
import slack_sdk.errors as e
2020
from slack_sdk.models.views import View
21+
22+
from ..models.attachments import Attachment
23+
from ..models.blocks import Block
24+
from ..models.metadata import Metadata
2125
from .async_base_client import AsyncBaseClient, AsyncSlackResponse
2226
from .internal_utils import (
2327
_parse_web_class_objects,
24-
_update_call_participants,
25-
_warn_if_text_or_attachment_fallback_is_missing,
28+
_print_files_upload_v2_suggestion,
2629
_remove_none_values,
2730
_to_v2_file_upload_item,
31+
_update_call_participants,
2832
_validate_for_legacy_client,
29-
_print_files_upload_v2_suggestion,
33+
_warn_if_text_or_attachment_fallback_is_missing,
3034
)
31-
from ..models.attachments import Attachment
32-
from ..models.blocks import Block
33-
from ..models.metadata import Metadata
3435

3536

3637
class AsyncWebClient(AsyncBaseClient):

slack_sdk/web/client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44
import os
55
import warnings
66
from io import IOBase
7-
from typing import Union, Sequence, Optional, Dict, Any, List
7+
from typing import Any, Dict, List, Optional, Sequence, Union
88

99
import slack_sdk.errors as e
1010
from slack_sdk.models.views import View
11+
12+
from ..models.attachments import Attachment
13+
from ..models.blocks import Block
14+
from ..models.metadata import Metadata
1115
from .base_client import BaseClient, SlackResponse
1216
from .internal_utils import (
1317
_parse_web_class_objects,
14-
_update_call_participants,
15-
_warn_if_text_or_attachment_fallback_is_missing,
18+
_print_files_upload_v2_suggestion,
1619
_remove_none_values,
1720
_to_v2_file_upload_item,
21+
_update_call_participants,
1822
_validate_for_legacy_client,
19-
_print_files_upload_v2_suggestion,
23+
_warn_if_text_or_attachment_fallback_is_missing,
2024
)
21-
from ..models.attachments import Attachment
22-
from ..models.blocks import Block
23-
from ..models.metadata import Metadata
2425

2526

2627
class WebClient(BaseClient):

slack_sdk/web/legacy_client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@
1616
import os
1717
import warnings
1818
from io import IOBase
19-
from typing import Union, Sequence, Optional, Dict, Any, List
19+
from typing import Any, Dict, List, Optional, Sequence, Union
2020

2121
import slack_sdk.errors as e
2222
from slack_sdk.models.views import View
23+
24+
from ..models.attachments import Attachment
25+
from ..models.blocks import Block
26+
from ..models.metadata import Metadata
2327
from .legacy_base_client import LegacyBaseClient, SlackResponse
2428
from .internal_utils import (
2529
_parse_web_class_objects,
26-
_update_call_participants,
27-
_warn_if_text_or_attachment_fallback_is_missing,
30+
_print_files_upload_v2_suggestion,
2831
_remove_none_values,
2932
_to_v2_file_upload_item,
33+
_update_call_participants,
3034
_validate_for_legacy_client,
31-
_print_files_upload_v2_suggestion,
35+
_warn_if_text_or_attachment_fallback_is_missing,
3236
)
33-
from ..models.attachments import Attachment
34-
from ..models.blocks import Block
35-
from ..models.metadata import Metadata
3637

3738

3839
class LegacyWebClient(LegacyBaseClient):

0 commit comments

Comments
 (0)