Skip to content

Commit 7c6faf4

Browse files
stubgen: increase get_package_properties timeout (#13109)
Some packages may take a very long time to import, which can spuriously trip the timeout in ModuleInspect. To make this less likely, increase the timeout from 5s to 30s.
1 parent 64a40e8 commit 7c6faf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/moduleinspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _get_from_queue(self) -> Union[ModuleProperties, str, None]:
157157
158158
Return the value read from the queue, or None if the process unexpectedly died.
159159
"""
160-
max_iter = 100
160+
max_iter = 600
161161
n = 0
162162
while True:
163163
if n == max_iter:

0 commit comments

Comments
 (0)