Skip to content

Commit e5b8733

Browse files
author
Guido van Rossum
committed
Fix test failures due to semantic_analysis_only flag.
1 parent e46573d commit e5b8733

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,8 @@ def type_check_first_pass(self) -> None:
14201420

14211421
def type_check_second_pass(self) -> None:
14221422
manager = self.manager
1423+
if self.options.semantic_analysis_only:
1424+
return
14231425
with self.wrap_context():
14241426
self.type_checker.check_second_pass()
14251427
manager.all_types.update(self.type_checker.type_map)

0 commit comments

Comments
 (0)