MCPcopy Index your code
hub / github.com/python/mypy / __exit__

Method __exit__

mypy/binder.py:131–140  ·  view source on GitHub ↗
(self, exc_type: object, exc_val: object, exc_tb: object)

Source from the content-addressed store, hash-verified

129 return new_frame
130
131 def __exit__(self, exc_type: object, exc_val: object, exc_tb: object) -> Literal[False]:
132 self.binder.pop_frame(self.can_skip, self.fall_through, discard=self.discard)
133
134 if self.break_frame:
135 self.binder.break_frames.pop()
136 if self.continue_frame:
137 self.binder.continue_frames.pop()
138 if self.try_frame:
139 self.binder.try_frames.remove(len(self.binder.frames) - 1)
140 return False
141
142
143class ConditionalTypeBinder:

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
pop_frameMethod · 0.80
popMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected