Marker for a closed dict. Access attempts raise a ValueError.
| 68 | |
| 69 | |
| 70 | class _ClosedDict(collections.abc.MutableMapping): |
| 71 | 'Marker for a closed dict. Access attempts raise a ValueError.' |
| 72 | |
| 73 | def closed(self, *args): |
| 74 | raise ValueError('invalid operation on closed shelf') |
| 75 | __iter__ = __len__ = __getitem__ = __setitem__ = __delitem__ = keys = closed |
| 76 | |
| 77 | def __repr__(self): |
| 78 | return '<Closed Dictionary>' |
| 79 | |
| 80 | |
| 81 | class Shelf(collections.abc.MutableMapping): |
no outgoing calls
no test coverage detected
searching dependent graphs…