Skip to content

Commit 71dd658

Browse files
committed
Disable interface extraction if not in incremental
Previously, we always extracted the public interface, even though there's really no need to do so when not running incremental mode.
1 parent 9391470 commit 71dd658

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mypy/build.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,11 @@ def parse_file(self) -> None:
13271327
self.suppressed = suppressed
13281328
self.priorities = priorities
13291329
self.dep_line_map = dep_line_map
1330-
self.interface = extract_interface(self.tree)
1331-
self.interface_hash = self.interface.compute_hash()
1330+
if self.manager.options.incremental:
1331+
self.interface = extract_interface(self.tree)
1332+
self.interface_hash = self.interface.compute_hash()
1333+
else:
1334+
self.interface_hash = ""
13321335
self.check_blockers()
13331336

13341337
def patch_parent(self) -> None:

0 commit comments

Comments
 (0)