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

Method _put

mypy/binder.py:229–231  ·  view source on GitHub ↗
(self, key: Key, type: Type, from_assignment: bool, index: int = -1)

Source from the content-addressed store, hash-verified

227 return f
228
229 def _put(self, key: Key, type: Type, from_assignment: bool, index: int = -1) -> None:
230 self.version += 1
231 self.frames[index].types[key] = CurrentType(type, from_assignment)
232
233 def _get(self, key: Key, index: int = -1) -> CurrentType | None:
234 if index < 0:

Callers 2

putMethod · 0.95
update_from_optionsMethod · 0.95

Calls 1

CurrentTypeClass · 0.85

Tested by

no test coverage detected