Skip to content

Commit 9e11451

Browse files
emmatypingGuido van Rossum
authored and
Guido van Rossum
committed
Fix unhashable list lib_path (python#4899)
From python#4898. This should be cherry-picked into the 0.590 release. Apologies for the last minute bug!
1 parent b6d388b commit 9e11451

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)