From: Josh Smith Date: Sun, 20 Feb 2022 12:31:09 +0000 (-0500) Subject: replace `self` param with more appropriate `cls` in classmethods (GH-31402) X-Git-Tag: v3.11.0a6~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3fcca4af1cb418dc802feb75100ecc1a286afaa;p=thirdparty%2FPython%2Fcpython.git replace `self` param with more appropriate `cls` in classmethods (GH-31402) --- diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index 97913c77721d..40417dc1d313 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -871,7 +871,7 @@ class KeysView(MappingView, Set): __slots__ = () @classmethod - def _from_iterable(self, it): + def _from_iterable(cls, it): return set(it) def __contains__(self, key): @@ -889,7 +889,7 @@ class ItemsView(MappingView, Set): __slots__ = () @classmethod - def _from_iterable(self, it): + def _from_iterable(cls, it): return set(it) def __contains__(self, item):