Skip to content

Commit e218304

Browse files
committed
path.root is a str
1 parent 5e2c453 commit e218304

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
@@ -549,7 +549,7 @@ def is_hidden(abs_path: str | Path, abs_root: str | Path = "") -> bool:
549549
if abs_root:
550550
abs_root = Path(os.path.normpath(abs_root))
551551
else:
552-
abs_root = abs_path.root
552+
abs_root = Path(abs_path.root)
553553

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

0 commit comments

Comments
 (0)