Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/_collections_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ class KeysView(MappingView, Set):
__slots__ = ()

@classmethod
def _from_iterable(self, it):
def _from_iterable(cls, it):
return set(it)

def __contains__(self, key):
Expand All @@ -834,7 +834,7 @@ class ItemsView(MappingView, Set):
__slots__ = ()

@classmethod
def _from_iterable(self, it):
def _from_iterable(cls, it):
return set(it)

def __contains__(self, item):
Expand Down