Returns the value of the state dict for the given key.
(self, key: str, default: Any = None)
| 114 | return bool(self._delta) |
| 115 | |
| 116 | def get(self, key: str, default: Any = None) -> Any: |
| 117 | """Returns the value of the state dict for the given key.""" |
| 118 | if key not in self: |
| 119 | return default |
| 120 | return self[key] |
| 121 | |
| 122 | def update(self, delta: dict[str, Any]) -> None: |
| 123 | """Updates the state dict with the given delta.""" |
no outgoing calls