summaryrefslogtreecommitdiffstats
path: root/Lib/_collections_abc.py
diff options
context:
space:
mode:
authorJosh Smith <cmyuiosu@gmail.com>2022-02-20 12:31:09 (GMT)
committerGitHub <noreply@github.com>2022-02-20 12:31:09 (GMT)
commita3fcca4af1cb418dc802feb75100ecc1a286afaa (patch)
tree08e4a6f94ecce888116c29c5064bd1bd42f25873 /Lib/_collections_abc.py
parent1f9d4c93af380d00bf2e24bc5f5ce662d41504aa (diff)
downloadcpython-a3fcca4af1cb418dc802feb75100ecc1a286afaa.zip
cpython-a3fcca4af1cb418dc802feb75100ecc1a286afaa.tar.gz
cpython-a3fcca4af1cb418dc802feb75100ecc1a286afaa.tar.bz2
replace `self` param with more appropriate `cls` in classmethods (GH-31402)
Diffstat (limited to 'Lib/_collections_abc.py')
-rw-r--r--Lib/_collections_abc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index 97913c7..40417dc 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):