Skip to content

Commit ab549bb

Browse files
[7.0.x] Add missing cooperative constructor changelog (#9563)
Co-authored-by: Florian Bruhin <me@the-compiler.org>
1 parent 4b1707f commit ab549bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

changelog/9488.deprecation.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
If custom subclasses of nodes like :class:`pytest.Item` override the
2+
``__init__`` method, they should take ``**kwargs``. See
3+
:ref:`uncooperative-constructors-deprecated` for details.
4+
5+
Note that a deprection warning is only emitted when there is a conflict in the
6+
arguments pytest expected to pass. This deprecation was already part of pytest
7+
7.0.0rc1 but wasn't documented.

0 commit comments

Comments
 (0)