Return an item from the cache dict or `default`
(self, key: t.Any, default: t.Any = None)
| 472 | return rv |
| 473 | |
| 474 | def get(self, key: t.Any, default: t.Any = None) -> t.Any: |
| 475 | """Return an item from the cache dict or `default`""" |
| 476 | try: |
| 477 | return self[key] |
| 478 | except KeyError: |
| 479 | return default |
| 480 | |
| 481 | def setdefault(self, key: t.Any, default: t.Any = None) -> t.Any: |
| 482 | """Set `default` if the key is not in the cache otherwise |
no outgoing calls
no test coverage detected