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 committed 2021-04-01 14:45:50 +01:00
1 parent eef4acd30b
commit 84afe6821a
1 file changed
+1 -3
+1 -3
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