| 829 | |
| 830 | |
| 831 | class MappingView(Sized): |
| 832 | |
| 833 | __slots__ = '_mapping', |
| 834 | |
| 835 | def __init__(self, mapping): |
| 836 | self._mapping = mapping |
| 837 | |
| 838 | def __len__(self): |
| 839 | return len(self._mapping) |
| 840 | |
| 841 | def __repr__(self): |
| 842 | return '{0.__class__.__name__}({0._mapping!r})'.format(self) |
| 843 | |
| 844 | __class_getitem__ = classmethod(GenericAlias) |
| 845 | |
| 846 | |
| 847 | class KeysView(MappingView, Set): |
no outgoing calls
searching dependent graphs…