MCPcopy Index your code
hub / github.com/python/cpython / KeysView

Class KeysView

Lib/_collections_abc.py:847–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

test_same_as_reprMethod · 0.90
test_basic_line_wrapMethod · 0.90
test_abc_viewsMethod · 0.90
test_issue26915Method · 0.90
keysMethod · 0.85

Calls

no outgoing calls

Tested by 4

test_same_as_reprMethod · 0.72
test_basic_line_wrapMethod · 0.72
test_abc_viewsMethod · 0.72
test_issue26915Method · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…