Skip to content

Commit d1027d0

Browse files
committed
test_uvprovider: narrow loaded_abspath to non-None before .parent/.stem access
Fixes pyright/ty reportOptionalMemberAccess / unresolved-attribute that my previous patch introduced — the reloaded.loaded_abspath type is Path | None so accessing .parent/.stem without an explicit is not None assert flags as potentially unbound.
1 parent 0355ab7 commit d1027d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_uvprovider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ def test_global_tool_mode_can_load_and_uninstall_without_bin_shim(
581581
assert_version_command=False,
582582
)
583583
assert reloaded is not None
584+
assert reloaded.loaded_abspath is not None
584585
# Windows uv-tool layout uses ``Scripts/cowsay.exe``
585586
# while POSIX writes ``bin/cowsay``. Check ``.stem`` +
586587
# ``.parent`` to match both.

0 commit comments

Comments
 (0)