aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml3
-rw-r--r--slack.py19
2 files changed, 11 insertions, 11 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 3c24b63..b4dfd3b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,9 @@
[tool.black]
extend-exclude = '^/typings/weechat.pyi'
+[tool.isort]
+profile = "black"
+
[tool.poetry]
name = "wee-slack"
version = "3.0.0"
diff --git a/slack.py b/slack.py
index 080d22e..39e2692 100644
--- a/slack.py
+++ b/slack.py
@@ -1,34 +1,31 @@
from __future__ import annotations
-from dataclasses import dataclass
-from enum import IntEnum
-from io import StringIO
+
import json
import os
import resource
+from dataclasses import dataclass
+from enum import IntEnum
+from io import StringIO
from typing import (
+ TYPE_CHECKING,
Any,
+ Awaitable,
+ Coroutine,
Dict,
Generator,
Generic,
- TYPE_CHECKING,
Tuple,
TypeVar,
Union,
cast,
)
-from typing import Awaitable, Coroutine
from urllib.parse import urlencode
from uuid import uuid4
import weechat
-
if TYPE_CHECKING:
- from slack_api import (
- SlackConversation,
- SlackConversationNotIm,
- SlackConversationIm,
- )
+ from slack_api import SlackConversation, SlackConversationIm, SlackConversationNotIm
else:
# To support running without slack types
SlackConversation = Any