PK!=v\KKmirror_dict/__init__.py""" MirrorDict provides a mapping that returns the key if no value is found. """ from collections.abc import Mapping class MirrorDict(Mapping): """ Mapping that returns the key if no value is found. """ __slots__ = ("_store",) def __init__(self, *args, **kwargs): self._store = dict(*args, **kwargs) def __getitem__(self, key): return self._store.get(key, key) def __iter__(self): return iter(self._store) def __len__(self): return len(self._store) def __repr__(self): return f"{type(self)}({self._store})" PK!HlŃTT!mirror_dict-1.0.0.dist-info/WHEEL A н#J@Z|Jmqvh&#hڭw!Ѭ"J˫( } %PK!H)ym2u$mirror_dict-1.0.0.dist-info/METADATARR0)l :QG2xFȏ ڷ7Et[vl6KdU)V+Rp.Q,h"GYKP@DcL(ﵭ@ȑlH[[jtb f^)aZs7t&PT!ѡ. 17*0Rb ] i9_IQG 8zzu$t]5PQl&zftv=ӽ Ao5&S