summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2024-09-25 01:26:26 (GMT)
committerGitHub <noreply@github.com>2024-09-25 01:26:26 (GMT)
commit5c6e3b715082bfccd0b4cf2bb1c18e8b1afcad3e (patch)
tree46169863ff13d793cb260b3d187a5b41c871071d /Doc
parentb6471f4a391e9d3c8e1b244c56a4cc25974632c9 (diff)
downloadcpython-5c6e3b715082bfccd0b4cf2bb1c18e8b1afcad3e.zip
cpython-5c6e3b715082bfccd0b4cf2bb1c18e8b1afcad3e.tar.gz
cpython-5c6e3b715082bfccd0b4cf2bb1c18e8b1afcad3e.tar.bz2
gh-90562: Support zero argument super with dataclasses when slots=True (gh-124455)
Co-authored-by: @wookie184 Co-authored-by: Carl Meyer <carl@oddbird.net>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dataclasses.rst7
1 files changed, 0 insertions, 7 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index cfca11a..1457392 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -188,13 +188,6 @@ Module contents
is raised.
.. warning::
- Calling no-arg :func:`super` in dataclasses using ``slots=True``
- will result in the following exception being raised:
- ``TypeError: super(type, obj): obj must be an instance or subtype of type``.
- The two-arg :func:`super` is a valid workaround.
- See :gh:`90562` for full details.
-
- .. warning::
Passing parameters to a base class :meth:`~object.__init_subclass__`
when using ``slots=True`` will result in a :exc:`TypeError`.
Either use ``__init_subclass__`` with no parameters