Skip to content

Commit 57f3b26

Browse files
committed
yet more linting banality
1 parent d18f70e commit 57f3b26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tools/build/generate_build_details.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def generate_data(
7070
#data['base_interpreter'] = sys._base_executable
7171
if os.name == 'nt':
7272
data['base_interpreter'] = os.path.join(
73-
data['base_prefix'], os.path.basename(sys._base_executable)
73+
data['base_prefix'],
74+
os.path.basename(sys._base_executable), # type: ignore[attr-defined]
7475
)
7576
else:
7677
data['base_interpreter'] = os.path.join(
@@ -166,7 +167,7 @@ def generate_data(
166167
return data
167168

168169

169-
def make_paths_relative(data: dict[str, Any], base_path: str | None = None) -> None:
170+
def make_paths_relative(data: dict[str, Any], base_path: StrPath | None = None) -> None:
170171
base_prefix = data['base_prefix']
171172

172173
# Update path values to make them relative to base_prefix
@@ -211,7 +212,7 @@ def relative_path(path: StrPath, base: StrPath) -> str:
211212
if path_drv.lower() == base_drv.lower():
212213
return os.path.relpath(path, base)
213214

214-
return path
215+
return os.fspath(path)
215216

216217

217218
def main() -> None:

0 commit comments

Comments
 (0)