Skip to content

Commit 6728848

Browse files
authored
Fix cache-convert (#17974)
Tested via: ``` set -x rm -rf .mypy_cache time python -m mypy --config-file mypy_self_check.ini -p mypy python misc/convert-cache.py --to-sqlite .mypy_cache/3.8 time python -m mypy --config-file mypy_self_check.ini -p mypy --sqlite-cache time python -m mypy --config-file mypy_self_check.ini -p mypy --sqlite-cache ```
1 parent c1f2db3 commit 6728848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/metastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def list_all(self) -> Iterable[str]:
131131
for dir, _, files in os.walk(self.cache_dir_prefix):
132132
dir = os.path.relpath(dir, self.cache_dir_prefix)
133133
for file in files:
134-
yield os.path.join(dir, file)
134+
yield os.path.normpath(os.path.join(dir, file))
135135

136136

137137
SCHEMA = """

0 commit comments

Comments
 (0)