Fix build errors

Add wordninja to requirements.txt
Fix typing to allow unrar-cffi to be optional
This commit is contained in:
lordwelch 2022-05-19 18:08:05 -07:00
parent 59eff520c8
commit 2bf943e971

View File

@ -537,7 +537,7 @@ class RarArchiver(UnknownArchiver):
return namelist
def get_rar_obj(self) -> Optional[rarfile.RarFile]:
def get_rar_obj(self) -> "Optional[rarfile.RarFile]":
try:
rarc = rarfile.RarFile(str(self.path))
except (OSError, IOError) as e: