This commit is contained in:
Dima Gerasimov 2022-04-14 09:41:52 +01:00
parent f11302b98e
commit 01df7d24c5

View file

@ -122,10 +122,13 @@ def kexists(path: PathIsh, subpath: str) -> bool:
import zipfile
if sys.version_info[:2] >= (3, 8):
# meh... zipfile.Path is not available on 3.7
ZipPathBase = zipfile.Path
else:
# meh... it's not available on 3.7
ZipPathBase = object
if typing.TYPE_CHECKING:
ZipPathBase = pathlib.Path
else:
ZipPathBase = object
class ZipPath(ZipPathBase):