diff options
author | Josh Smith <cmyuiosu@gmail.com> | 2022-02-20 12:31:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-20 12:31:09 (GMT) |
commit | a3fcca4af1cb418dc802feb75100ecc1a286afaa (patch) | |
tree | 08e4a6f94ecce888116c29c5064bd1bd42f25873 /Lib/_collections_abc.py | |
parent | 1f9d4c93af380d00bf2e24bc5f5ce662d41504aa (diff) | |
download | cpython-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.py | 4 |
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): |