ruff: enable UP ruleset for detecting python deprecations

This commit is contained in:
Dima Gerasimov 2024-08-27 23:12:57 +01:00
parent 2849870773
commit 7eef1f9fc2
9 changed files with 27 additions and 22 deletions

View file

@ -148,14 +148,8 @@ 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
zipfile_Path = zipfile.Path
else:
if typing.TYPE_CHECKING:
zipfile_Path = Any
else:
zipfile_Path = object
# meh... zipfile.Path is not available on 3.7
zipfile_Path = zipfile.Path
@total_ordering