Skip to content

Commit cb1bcae

Browse files
committed
Fix missing parse call
1 parent 1a28227 commit cb1bcae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mypy/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@ def parse_all(self, states: list[State], post_parse: bool = True) -> None:
10331033
parallel_states.append(state)
10341034
if len(parallel_states) > 1:
10351035
self.parse_parallel(parallel_states)
1036+
elif len(parallel_states) == 1:
1037+
# Avoid using executor when there is no parallelism.
1038+
parallel_states[0].parse_file()
10361039
if post_parse:
10371040
self.post_parse_all(states)
10381041

0 commit comments

Comments
 (0)