Skip to content

Commit 1443778

Browse files
authored
Merge pull request #12108 from pytest-dev/bluetech-patch-1
doc: add versionadded to `Stash` and `StashKey`
2 parents 6c9e107 + 7eaaf37 commit 1443778

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)