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 4201558483
commit d33fb6ef31
2 changed files with 3 additions and 2 deletions

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:

View File

@ -5,4 +5,5 @@ requests==2.*
pathvalidate
pycountry
py7zr
text2digits
text2digits
wordninja