Method
update
(
self,
*args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]],
**kwargs: Any,
)
Source from the content-addressed store, hash-verified
| 365 | self._dict[key] = value |
| 366 | |
| 367 | def update( |
| 368 | self, |
| 369 | *args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]], |
| 370 | **kwargs: Any, |
| 371 | ) -> None: |
| 372 | value = MultiDict(*args, **kwargs) |
| 373 | existing_items = [(k, v) for (k, v) in self._list if k not in value.keys()] |
| 374 | self._list = existing_items + value.multi_items() |
| 375 | self._dict.update(value) |
| 376 | |
| 377 | |
| 378 | class QueryParams(ImmutableMultiDict[str, str]): |