Skip to content

Commit 8cad96b

Browse files
committed
path.root is a str
1 parent 6854549 commit 8cad96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_core/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def is_hidden(abs_path: str | Path, abs_root: str | Path = "") -> bool:
550550
if abs_root:
551551
abs_root = Path(os.path.normpath(abs_root))
552552
else:
553-
abs_root = abs_path.root
553+
abs_root = Path(abs_path.root)
554554

555555
if abs_path == abs_root:
556556
# root itself is never hidden

0 commit comments

Comments
 (0)