MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __setitem__

Method __setitem__

lib/sqlalchemy/ext/mutable.py:813–816  ·  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

811 """
812
813 def __setitem__(self, key: _KT, value: _VT) -> None:
814 """Detect dictionary set events and emit change events."""
815 dict.__setitem__(self, key, value)
816 self.changed()
817
818 if TYPE_CHECKING:
819 # 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