1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Fixed invalid type annotation

This commit is contained in:
A_D 2021-03-11 21:08:08 +02:00 committed by Athanasius
parent e4c0703142
commit 60dd93a3de

View File

@ -270,7 +270,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
"""
return bool(self.thread and self.thread.is_alive())
def on_created(self, event: FileCreatedEvent) -> None:
def on_created(self, event: 'FileCreatedEvent') -> None:
"""Watchdog callback when, e.g. client (re)started."""
if not event.is_directory and self._RE_LOGFILE.search(basename(event.src_path)):