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

Method record_definition

mypy/partially_defined.py:256–259  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

254 self._scope().branch_stmts[-1].skip_branch()
255
256 def record_definition(self, name: str) -> None:
257 assert len(self.scopes) > 0
258 assert len(self.scopes[-1].branch_stmts) > 0
259 self._scope().branch_stmts[-1].record_definition(name)
260
261 def delete_var(self, name: str) -> None:
262 assert len(self.scopes) > 0

Callers

nothing calls this directly

Calls 3

_scopeMethod · 0.95
lenFunction · 0.85
record_definitionMethod · 0.45

Tested by

no test coverage detected