Fix build errors
Add wordninja to requirements.txt Fix typing to allow unrar-cffi to be optional
This commit is contained in:
parent
59eff520c8
commit
2bf943e971
@ -537,7 +537,7 @@ class RarArchiver(UnknownArchiver):
|
|||||||
|
|
||||||
return namelist
|
return namelist
|
||||||
|
|
||||||
def get_rar_obj(self) -> Optional[rarfile.RarFile]:
|
def get_rar_obj(self) -> "Optional[rarfile.RarFile]":
|
||||||
try:
|
try:
|
||||||
rarc = rarfile.RarFile(str(self.path))
|
rarc = rarfile.RarFile(str(self.path))
|
||||||
except (OSError, IOError) as e:
|
except (OSError, IOError) as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user