replace self param with more appropriate cls in classmethods (GH-31402) (#31445)

(cherry picked from commit a3fcca4af1)

Co-authored-by: Josh Smith <cmyuiosu@gmail.com>

Co-authored-by: Josh Smith <cmyuiosu@gmail.com>
This commit is contained in:
Miss Islington (bot) 2022-02-20 16:10:35 -08:00 committed by GitHub
parent 83eabc6c8f
commit e7115d5363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):
@ -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):