Removes a key or index and returns a (key, value) item.
(self)
| 319 | return rv |
| 320 | |
| 321 | def popitem(self) -> tuple[str, str]: |
| 322 | """Removes a key or index and returns a (key, value) item.""" |
| 323 | return self._list.pop() |
| 324 | |
| 325 | def __contains__(self, key: str) -> bool: |
| 326 | """Check if a key is present.""" |