[7.0.x] Add missing cooperative constructor changelog (#9563)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
github-actions[bot] 2022-01-27 10:36:04 -03:00 committed by GitHub
parent 4b1707ff70
commit ab549bba8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

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.