Skip to content

Commit 25375fd

Browse files
hellomypastorclaude
andcommitted
fix: cast Traversable to str before Path() for pyright compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 17822f3 commit 25375fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/src/opensandbox_cli/commands/skills.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _get_skill_source() -> Path:
8484
pkg = importlib.resources.files("opensandbox_cli") / "skills" / "opensandbox-troubleshoot.md"
8585
# For older Python or zipped packages, we may need to extract
8686
if hasattr(pkg, "__fspath__"):
87-
return Path(pkg)
87+
return Path(str(pkg))
8888
# Fallback: try resolving as a traversable
8989
with importlib.resources.as_file(pkg) as p:
9090
return Path(p)

0 commit comments

Comments
 (0)