Skip to content

Commit 686658b

Browse files
miss-islingtoncmyui
authored andcommitted
replace self param with more appropriate cls in classmethods (pythonGH-31402) (python#31445)
(cherry picked from commit a3fcca4) Co-authored-by: Josh Smith <[email protected]> Co-authored-by: Josh Smith <[email protected]>
1 parent b979814 commit 686658b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_collections_abc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ class KeysView(MappingView, Set):
816816
__slots__ = ()
817817

818818
@classmethod
819-
def _from_iterable(self, it):
819+
def _from_iterable(cls, it):
820820
return set(it)
821821

822822
def __contains__(self, key):
@@ -834,7 +834,7 @@ class ItemsView(MappingView, Set):
834834
__slots__ = ()
835835

836836
@classmethod
837-
def _from_iterable(self, it):
837+
def _from_iterable(cls, it):
838838
return set(it)
839839

840840
def __contains__(self, item):

0 commit comments

Comments
 (0)