diff --git a/hotreload/hotreload.py b/hotreload/hotreload.py index dcc2d97..67b7145 100644 --- a/hotreload/hotreload.py +++ b/hotreload/hotreload.py @@ -1,6 +1,6 @@ from asyncio import run_coroutine_threadsafe from pathlib import Path -from typing import Sequence +from typing import TYPE_CHECKING, Sequence from red_commons.logging import RedTraceLogger, getLogger from redbot.core import Config, checks, commands @@ -8,7 +8,10 @@ from redbot.core.bot import Red from redbot.core.core_commands import CoreLogic from redbot.core.utils.chat_formatting import bold, box, humanize_list from watchdog.events import FileSystemEvent, FileSystemMovedEvent, RegexMatchingEventHandler -from watchdog.observers import Observer, ObserverType +from watchdog.observers import Observer + +if TYPE_CHECKING: + from watchdog.observers import ObserverType class HotReload(commands.Cog): @@ -16,7 +19,7 @@ class HotReload(commands.Cog): __author__ = ["[cswimr](https://www.coastalcommits.com/cswimr)"] __git__ = "https://www.coastalcommits.com/cswimr/SeaCogs" - __version__ = "1.3.0" + __version__ = "1.3.1" __documentation__ = "https://seacogs.coastalcommits.com/hotreload/" def __init__(self, bot: Red) -> None: