Fix missing import for typing, more type hints

This commit is contained in:
Kumi 2022-09-20 04:54:06 +00:00
parent 8c9e3f5944
commit 8689910f78
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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: