From d33fb6ef31ba72e590a0d3e5b23dafd812893c93 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Thu, 19 May 2022 18:08:05 -0700 Subject: [PATCH] Fix build errors Add wordninja to requirements.txt Fix typing to allow unrar-cffi to be optional --- comicapi/comicarchive.py | 2 +- requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/comicapi/comicarchive.py b/comicapi/comicarchive.py index 129688e..59510c8 100644 --- a/comicapi/comicarchive.py +++ b/comicapi/comicarchive.py @@ -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: diff --git a/requirements.txt b/requirements.txt index 5f177dd..7a1b628 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,5 @@ requests==2.* pathvalidate pycountry py7zr -text2digits \ No newline at end of file +text2digits +wordninja