1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

import of watchdog.events.FileCreatedEvent needed even when not type checking

PyCharm debugging bailed out due to the lack.
This commit is contained in:
Athanasius 2021-03-10 17:48:51 +00:00
parent eef4acd30b
commit 84afe6821a

View File

@ -38,9 +38,7 @@ elif platform == 'win32':
import ctypes
from ctypes.wintypes import BOOL, HWND, LPARAM, LPWSTR
from watchdog.events import FileSystemEventHandler
if TYPE_CHECKING:
from watchdog.events import FileCreatedEvent
from watchdog.events import FileCreatedEvent, FileSystemEventHandler
from watchdog.observers import Observer
EnumWindows = ctypes.windll.user32.EnumWindows