MCPcopy Index your code
hub / github.com/reflex-dev/reflex / __setitem__

Method __setitem__

reflex/istate/proxy.py:643–650  ·  view source on GitHub ↗

Set the item on the proxied object and mark state dirty. Args: key: The key of the item. value: The value of the item.

(self, key: str, value: Any)

Source from the content-addressed store, hash-verified

641 self._mark_dirty(super().__delitem__, args=(key,)) # pyright: ignore[reportAttributeAccessIssue]
642
643 def __setitem__(self, key: str, value: Any):
644 """Set the item on the proxied object and mark state dirty.
645
646 Args:
647 key: The key of the item.
648 value: The value of the item.
649 """
650 self._mark_dirty(super().__setitem__, args=(key, value)) # pyright: ignore[reportAttributeAccessIssue]
651
652 def __setattr__(self, name: str, value: Any):
653 """Set the attribute on the proxied object and mark state dirty.

Callers 1

__setattr__Method · 0.45

Calls 1

_mark_dirtyMethod · 0.95

Tested by

no test coverage detected