Skip to content

Commit 081a275

Browse files
emmatypinggvanrossum
authored andcommitted
Fix unhashable list lib_path (#4899)
From #4898. This should be cherry-picked into the 0.590 release. Apologies for the last minute bug!
1 parent a25f2e6 commit 081a275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def find_module_path_and_all(module: str, pyversion: Tuple[int, int],
160160
module_all = getattr(mod, '__all__', None)
161161
else:
162162
# Find module by going through search path.
163-
module_path = mypy.build.FindModuleCache().find_module(module, ['.'] + search_path,
163+
module_path = mypy.build.FindModuleCache().find_module(module, ('.',) + tuple(search_path),
164164
interpreter)
165165
if not module_path:
166166
raise SystemExit(

0 commit comments

Comments
 (0)