Skip to content

Commit 7faa082

Browse files
committed
Reverted the change from path to pathlib and added type ignore comments
1 parent 4123506 commit 7faa082

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/vendored.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import subprocess
55
from textwrap import dedent
66

7-
from pathlib import Path
7+
from path import Path
88

99

1010
def remove_all(paths):
@@ -117,7 +117,7 @@ def rewrite_wheel(pkg_files: Path):
117117

118118
# Rewrite vendored imports to use setuptools's own vendored libraries
119119
for path in pkg_files.iterdir():
120-
if path.suffix == '.py':
120+
if path.suffix == '.py': # type: ignore[attr-defined]
121121
code = path.read_text()
122122
if path.name == 'wheelfile.py':
123123
code = re.sub(
@@ -155,7 +155,7 @@ class WheelError(Exception):
155155
flags=re.MULTILINE,
156156
)
157157

158-
path.write_text(code)
158+
path.write_text(code) # type: ignore[attr-defined]
159159

160160

161161
def rewrite_platformdirs(pkg_files: Path):

0 commit comments

Comments
 (0)