Remove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].
(self, key, *args)
| 1135 | raise KeyError('No keys found in the first mapping.') |
| 1136 | |
| 1137 | def pop(self, key, *args): |
| 1138 | 'Remove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].' |
| 1139 | try: |
| 1140 | return self.maps[0].pop(key, *args) |
| 1141 | except KeyError: |
| 1142 | raise KeyError(f'Key not found in the first mapping: {key!r}') |
| 1143 | |
| 1144 | def clear(self): |
| 1145 | 'Clear maps[0], leaving maps[1:] intact.' |
no outgoing calls
no test coverage detected