MCPcopy Index your code
hub / github.com/RustPython/RustPython / KeysView

Class KeysView

Lib/_collections_abc.py:846–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844
845
846class KeysView(MappingView, Set):
847
848 __slots__ = ()
849
850 @classmethod
851 def _from_iterable(cls, it):
852 return set(it)
853
854 def __contains__(self, key):
855 return key in self._mapping
856
857 def __iter__(self):
858 yield from self._mapping
859
860
861KeysView.register(dict_keys)

Callers 2

test_issue26915Method · 0.90
keysMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_issue26915Method · 0.72