Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _find_config_file(
break
current_dir = parent_dir

for config_file in defaults.USER_CONFIG_FILES:
for config_file in map(os.path.expanduser, defaults.USER_CONFIG_FILES):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to expand here and not early in defaults.py?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, if the original code had done that the bug would never have happened :-)

ret = _parse_individual_file(config_file, stderr)
if ret is None:
continue
Expand Down