From 8689910f785f86f78a75ad209e7eada0a686a148 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 20 Sep 2022 04:54:06 +0000 Subject: [PATCH] Fix missing import for typing, more type hints --- src/contentmonster/classes/shorethread.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contentmonster/classes/shorethread.py b/src/contentmonster/classes/shorethread.py index 4457d61..f994bf6 100644 --- a/src/contentmonster/classes/shorethread.py +++ b/src/contentmonster/classes/shorethread.py @@ -3,6 +3,7 @@ from .doghandler import DogHandler from .directory import Directory from .database import Database from .logger import Logger +from .file import File from watchdog.observers import Observer @@ -111,7 +112,7 @@ class ShoreThread(Process): db = self._dbclass() db.removeFile(directory, name) - def addFile(self, fileobj): + def addFile(self, fileobj: File): """Add a File object to the processing queue, if not already there Args: