diff options
author | Richard Levasseur <richardlev@gmail.com> | 2020-11-21 19:56:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 19:56:24 (GMT) |
commit | 68f68fa423739802fce37589ee77683c42ddb933 (patch) | |
tree | 458cca02b378a00cf1c71b15ace19c90ffee1fbd /Doc | |
parent | ea97ebab3578a6e0bb505da96819ac44d422a6cb (diff) | |
download | cpython-68f68fa423739802fce37589ee77683c42ddb933.zip cpython-68f68fa423739802fce37589ee77683c42ddb933.tar.gz cpython-68f68fa423739802fce37589ee77683c42ddb933.tar.bz2 |
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.abc.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index db0e25b..2345e78 100644 --- a/Doc/library/collections.abc.rst +++ b/Doc/library/collections.abc.rst @@ -291,7 +291,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin: :meth:`_from_iterable` which calls ``cls(iterable)`` to produce a new set. If the :class:`Set` mixin is being used in a class with a different constructor signature, you will need to override :meth:`_from_iterable` - with a classmethod that can construct new instances from + with a classmethod or regular method that can construct new instances from an iterable argument. (2) |