aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
Diffstat (limited to 'slack')
-rw-r--r--slack/api.py3
-rw-r--r--slack/config.py8
-rw-r--r--slack/http.py6
-rw-r--r--slack/log.py2
-rw-r--r--slack/main.py3
-rw-r--r--slack/shared.py6
-rw-r--r--slack/task.py4
-rw-r--r--slack/util.py2
8 files changed, 16 insertions, 18 deletions
diff --git a/slack/api.py b/slack/api.py
index 4cdc53d..19cfb11 100644
--- a/slack/api.py
+++ b/slack/api.py
@@ -4,10 +4,9 @@ import json
from typing import TYPE_CHECKING, Dict, Union
from urllib.parse import urlencode
+from slack.http import http_request
from slack.shared import shared
-from .http import http_request
-
if TYPE_CHECKING:
from slack_api import SlackConversation, SlackConversationIm, SlackConversationNotIm
diff --git a/slack/config.py b/slack/config.py
index 56233a0..68395be 100644
--- a/slack/config.py
+++ b/slack/config.py
@@ -5,10 +5,10 @@ from typing import Generic, TypeVar, Union, cast
import weechat
-from .api import SlackWorkspace
-from .log import print_error
-from .shared import shared
-from .util import get_callback_name
+from slack.api import SlackWorkspace
+from slack.log import print_error
+from slack.shared import shared
+from slack.util import get_callback_name
class WeeChatColor(str):
diff --git a/slack/http.py b/slack/http.py
index 24681a0..794164d 100644
--- a/slack/http.py
+++ b/slack/http.py
@@ -5,9 +5,9 @@ from typing import Dict
import weechat
-from .log import LogLevel, log
-from .task import FutureProcess, sleep, weechat_task_cb
-from .util import get_callback_name
+from slack.log import LogLevel, log
+from slack.task import FutureProcess, sleep, weechat_task_cb
+from slack.util import get_callback_name
class HttpError(Exception):
diff --git a/slack/log.py b/slack/log.py
index 10dc803..2c8a679 100644
--- a/slack/log.py
+++ b/slack/log.py
@@ -2,7 +2,7 @@ from enum import IntEnum
import weechat
-from .shared import shared
+from slack.shared import shared
class LogLevel(IntEnum):
diff --git a/slack/main.py b/slack/main.py
index 9d31eac..27a3a40 100644
--- a/slack/main.py
+++ b/slack/main.py
@@ -1,8 +1,7 @@
import weechat
from slack.config import SlackWorkspace
-
-from .shared import shared
+from slack.shared import shared
async def init():
diff --git a/slack/shared.py b/slack/shared.py
index 0c2f71b..67d6c9c 100644
--- a/slack/shared.py
+++ b/slack/shared.py
@@ -3,9 +3,9 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Any, Dict, Tuple
if TYPE_CHECKING:
- from .api import SlackWorkspace
- from .config import SlackConfig
- from .task import Task
+ from slack.api import SlackWorkspace
+ from slack.config import SlackConfig
+ from slack.task import Task
class Shared:
diff --git a/slack/task.py b/slack/task.py
index 80687a6..2caf264 100644
--- a/slack/task.py
+++ b/slack/task.py
@@ -5,8 +5,8 @@ from uuid import uuid4
import weechat
-from .shared import shared
-from .util import get_callback_name
+from slack.shared import shared
+from slack.util import get_callback_name
T = TypeVar("T")
diff --git a/slack/util.py b/slack/util.py
index 4f9e5dd..507978d 100644
--- a/slack/util.py
+++ b/slack/util.py
@@ -1,6 +1,6 @@
from typing import Any, Callable
-from .shared import shared
+from slack.shared import shared
def get_callback_name(callback: Callable[..., Any]) -> str: