MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __setitem__

Method __setitem__

src/_pytest/stash.py:71–73  ·  view source on GitHub ↗

Set a value for key.

(self, key: StashKey[T], value: T)

Source from the content-addressed store, hash-verified

69 self._storage: Dict[StashKey[Any], object] = {}
70
71 def __setitem__(self, key: StashKey[T], value: T) -> None:
72 """Set a value for key."""
73 self._storage[key] = value
74
75 def __getitem__(self, key: StashKey[T]) -> T:
76 """Get the value for key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected