MCPcopy Index your code
hub / github.com/plotly/dash / __setitem__

Method __setitem__

dash/_patch.py:71–82  ·  view source on GitHub ↗
(self, key: _KeyType, value: Any)

Source from the content-addressed store, hash-verified

69 self.__delitem__(item)
70
71 def __setitem__(self, key: _KeyType, value: Any):
72 validate_slice(key)
73 if value is _noop:
74 # The += set themselves.
75 return
76 self._operations.append(
77 _operation(
78 "Assign",
79 self._location + [key],
80 value=value,
81 )
82 )
83
84 def __delitem__(self, key: _KeyType):
85 validate_slice(key)

Callers 2

__setattr__Method · 0.95
run_appMethod · 0.45

Calls 3

validate_sliceFunction · 0.85
_operationFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected