We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106c8a6 commit a068037Copy full SHA for a068037
mypy/build.py
@@ -4570,6 +4570,12 @@ def process_stale_scc_implementation(
4570
unfinished_modules = set(stale)
4571
for id in stale:
4572
checker = graph[id].type_checker()
4573
+ # Optimization: if this is a 3rd party library, or we ignore errors
4574
+ # otherwise in this module, skip the implementations altogether.
4575
+ if checker.can_skip_diagnostics and not checker.options.preserve_asts:
4576
+ unfinished_modules.discard(id)
4577
+ graph[id].finish_passes()
4578
+ continue
4579
# We need to reset deferral count after possibly deferring any methods that
4580
# are considered part of the top-level (because they define/infer variables).
4581
checker.pass_num = 0
0 commit comments