summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRichard Levasseur <richardlev@gmail.com>2020-11-21 19:56:24 (GMT)
committerGitHub <noreply@github.com>2020-11-21 19:56:24 (GMT)
commit68f68fa423739802fce37589ee77683c42ddb933 (patch)
tree458cca02b378a00cf1c71b15ace19c90ffee1fbd /Doc
parentea97ebab3578a6e0bb505da96819ac44d422a6cb (diff)
downloadcpython-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.rst2
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)