Skip to content

Commit b40badf

Browse files
committed
Keep pytype happy on older python versions
Older python versions only allow str() to be passed to shutil.move, so cast the Path arguments explicitly.
1 parent b50d66e commit b40badf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycheribuild/filesystemutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def async_clean_directory(
135135
# rename the directory, create a new dir and then delete it in a background thread
136136
print_command("mv", path, tempdir, print_verbose_only=True, config=self.config)
137137
if not self.config.pretend:
138-
shutil.move(path, tempdir)
138+
shutil.move(str(path), str(tempdir))
139139
self.makedirs(path)
140140
if not self.config.pretend:
141141
assert path.is_dir()

0 commit comments

Comments
 (0)