Skip to content

Commit e13bc2c

Browse files
committed
Fix regression for user config files
Fixes #18650
1 parent 1edb1d2 commit e13bc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def _find_config_file(
276276
break
277277
current_dir = parent_dir
278278

279-
for config_file in defaults.USER_CONFIG_FILES:
279+
for config_file in map(os.path.expanduser, defaults.USER_CONFIG_FILES):
280280
ret = _parse_individual_file(config_file, stderr)
281281
if ret is None:
282282
continue

0 commit comments

Comments
 (0)