MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __setitem__

Method __setitem__

lib/sqlalchemy/ext/mutable.py:809–812  ·  view source on GitHub ↗

Detect dictionary set events and emit change events.

(self, key: _KT, value: _VT)

Source from the content-addressed store, hash-verified

807 """
808
809 def __setitem__(self, key: _KT, value: _VT) -> None:
810 """Detect dictionary set events and emit change events."""
811 dict.__setitem__(self, key, value)
812 self.changed()
813
814 if TYPE_CHECKING:
815 # from https://github.com/python/mypy/issues/14858

Callers 4

__setitem__Method · 0.45
setMethod · 0.45
__setitem__Function · 0.45
setdefaultFunction · 0.45

Calls 1

changedMethod · 0.45

Tested by

no test coverage detected