Set the ``id`` and the corresponding config content in pairs, see also :py:meth:`__setitem__`. For example, ``parser.update({"train::epoch": 100, "train::lr": 0.02})`` Args: pairs: dictionary of `id` and config pairs.
(self, pairs: dict[str, Any])
| 432 | self[ReferenceResolver.normalize_id(id)] = self.ref_resolver.normalize_meta_id(config) |
| 433 | |
| 434 | def update(self, pairs: dict[str, Any]) -> None: |
| 435 | """ |
| 436 | Set the ``id`` and the corresponding config content in pairs, see also :py:meth:`__setitem__`. |
| 437 | For example, ``parser.update({"train::epoch": 100, "train::lr": 0.02})`` |
| 438 | |
| 439 | Args: |
| 440 | pairs: dictionary of `id` and config pairs. |
| 441 | |
| 442 | """ |
| 443 | for k, v in pairs.items(): |
| 444 | self[k] = v |
| 445 | |
| 446 | def __contains__(self, id: str | int) -> bool: |
| 447 | """ |
no outgoing calls