This commit is contained in:
Dima Gerasimov 2022-04-14 09:50:01 +01:00
parent 01df7d24c5
commit f89ba302da

View file

@ -6,7 +6,7 @@ from __future__ import annotations
import pathlib import pathlib
from pathlib import Path from pathlib import Path
import sys import sys
from typing import Union, IO, Sequence from typing import Union, IO, Sequence, Any
import io import io
PathIsh = Union[Path, str] PathIsh = Union[Path, str]
@ -126,7 +126,7 @@ if sys.version_info[:2] >= (3, 8):
ZipPathBase = zipfile.Path ZipPathBase = zipfile.Path
else: else:
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
ZipPathBase = pathlib.Path ZipPathBase = Any
else: else:
ZipPathBase = object ZipPathBase = object