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

Method push_function

mypy/checker_shared.py:362–365  ·  view source on GitHub ↗
(self, item: FuncItem)

Source from the content-addressed store, hash-verified

360
361 @contextmanager
362 def push_function(self, item: FuncItem) -> Iterator[None]:
363 self.stack.append(item)
364 yield
365 self.stack.pop()
366
367 @contextmanager
368 def push_class(self, info: TypeInfo) -> Iterator[None]:

Callers 3

check_func_defMethod · 0.80
visit_lambda_exprMethod · 0.80

Calls 2

appendMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected