Add missing cooperative constructor changelog (#9559)

This was supposed to be part of #9488, but I only now noticed it was lying around uncommitted in my git dir
This commit is contained in:
Florian Bruhin
2022-01-27 13:33:09 +01:00
committed by GitHub
parent 843f03e3ca
commit 597bb9376b

View File

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