Skip to content

Commit f92c939

Browse files
Rename variable.
1 parent 2d70172 commit f92c939

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/textual/widgets/_directory_tree.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def __init__(
9090
classes: str | None = None,
9191
disabled: bool = False,
9292
) -> None:
93-
path = os.fspath(path)
94-
self.path = path
93+
str_path = os.fspath(path)
94+
self.path = str_path
9595
super().__init__(
96-
path,
97-
data=DirEntry(path, True),
96+
str_path,
97+
data=DirEntry(str_path, True),
9898
name=name,
9999
id=id,
100100
classes=classes,

0 commit comments

Comments
 (0)