fix(hotreload): only import ObserverType for TYPE_CHECKING
This commit is contained in:
parent
76f0a4cdd4
commit
70d75c688c
1 changed files with 6 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue