Skip to content

Commit f95e562

Browse files
authored
Merge branch 'master' into enableallow
2 parents 8806afc + d66ea14 commit f95e562

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mypy/checker.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,13 +3152,6 @@ def visit_block(self, b: Block) -> None:
31523152
self.binder.unreachable()
31533153
return
31543154
for s in b.body:
3155-
# If we export types, we need to continue checking to make sure all
3156-
# expressions are present in type map (even if most have type Any).
3157-
if self.current_node_deferred and not self.options.export_types:
3158-
# With current deferral logic there is no point continuing to
3159-
# type-check current function, as we will not infer more types,
3160-
# will not show errors, and each expression is inferred as Any.
3161-
return
31623155
if self.binder.is_unreachable():
31633156
if not self.should_report_unreachable_issues():
31643157
break
@@ -4830,7 +4823,6 @@ def check_simple_assignment(
48304823
and inferred is not None
48314824
and inferred.type is not None
48324825
and not inferred.is_final
4833-
and not self.current_node_deferred
48344826
):
48354827
new_inferred = remove_instance_last_known_values(rvalue_type)
48364828
# Should we widen the inferred type or the lvalue? Variables defined

0 commit comments

Comments
 (0)