Skip to content

Commit 07923a1

Browse files
committed
Fixed error reported by mypy.
prelude\toolchains\msvc\vswhere.py:56: error: Argument 1 to "Tool" has incompatible type "str"; expected "Path" [arg-type]
1 parent 116bca0 commit 07923a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prelude/toolchains/msvc/vswhere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def find_in_path(executable: str, is_optional: bool = False) -> Tool | None:
5353
else:
5454
print(f"{executable} not found in $PATH", file=sys.stderr)
5555
sys.exit(1)
56-
return Tool(which)
56+
return Tool(Path(which))
5757

5858

5959
def run_vswhere(required_component: str) -> list[dict[str, Any]]:

0 commit comments

Comments
 (0)