Skip to content

Commit 3637d9e

Browse files
followup: add note on from_parent kwargs
1 parent 5c1e56d commit 3637d9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/en/deprecations.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ This limitation in api surface intends to enable better/simpler refactoring of t
4545
This means that instead of :code:`MyItem(name="foo", parent=collector, obj=42)`
4646
one now has to invoke :code:`MyItem.from_parent(collector, name="foo")`.
4747

48+
Note that ``from_parent`` should only be called with keyword arguments for the parameters.
49+
4850

4951

5052
``junit_family`` default value change to "xunit2"

0 commit comments

Comments
 (0)