We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d5fe2c commit ddaed62Copy full SHA for ddaed62
Doc/library/dataclasses.rst
@@ -185,7 +185,10 @@ Module contents
185
- *slots*: If true (the default is ``False``), :attr:`~object.__slots__` attribute
186
will be generated and new class will be returned instead of the original one.
187
If :attr:`!__slots__` is already defined in the class, then :exc:`TypeError`
188
- is raised.
+ is raised. Calling no-arg :func:`super` in dataclasses using ``slots=True`` will result in
189
+ the following exception being raised:
190
+ ``TypeError: super(type, obj): obj must be an instance or subtype of type``.
191
+ The two-arg :func:`super` is a valid workaround. See :gh:`90562` for full details.
192
193
.. versionadded:: 3.10
194
0 commit comments