Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,10 @@ def reset(self) -> None:
self._type_maps[0].clear()
self.temp_type_map = None
self.expr_checker.reset()

assert self.inferred_attribute_types is None
assert self.partial_types == []
assert self.deferred_nodes == []
assert len(self.scope.stack) == 1
assert self.partial_types == []
self.deferred_nodes = []
self.partial_types = []
self.inferred_attribute_types = None
self.scope = CheckerScope(self.tree)

def check_first_pass(self) -> None:
"""Type check the entire file, but defer functions with unresolved references.
Expand Down