Skip to content

Commit cd585a1

Browse files
[8.1.x] doc: add versionadded to Stash and StashKey (#12109)
Co-authored-by: Ran Benita <ran@unusedvar.com>
1 parent 6c14139 commit cd585a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/_pytest/stash.py

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class StashKey(Generic[T]):
1919
A ``StashKey`` is associated with the type ``T`` of the value of the key.
2020
2121
A ``StashKey`` is unique and cannot conflict with another key.
22+
23+
.. versionadded:: 7.0
2224
"""
2325

2426
__slots__ = ()
@@ -61,6 +63,8 @@ class Stash:
6163
some_str = stash[some_str_key]
6264
# The static type of some_bool is bool.
6365
some_bool = stash[some_bool_key]
66+
67+
.. versionadded:: 7.0
6468
"""
6569

6670
__slots__ = ("_storage",)

0 commit comments

Comments
 (0)