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

Method push_frame

mypy/binder.py:222–227  ·  view source on GitHub ↗

Push a new frame into the binder.

(self, conditional_frame: bool = False)

Source from the content-addressed store, hash-verified

220 self._add_dependencies(elt, value)
221
222 def push_frame(self, conditional_frame: bool = False) -> Frame:
223 """Push a new frame into the binder."""
224 f = Frame(self._get_id(), conditional_frame)
225 self.frames.append(f)
226 self.options_on_return.append([])
227 return f
228
229 def _put(self, key: Key, type: Type, from_assignment: bool, index: int = -1) -> None:
230 self.version += 1

Callers 3

top_frame_contextMethod · 0.95
check_func_defMethod · 0.80
__enter__Method · 0.80

Calls 3

_get_idMethod · 0.95
FrameClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected