[8.1.x] doc: add versionadded to `ExceptionInfo.group_contains` (#12142)
Co-authored-by: Sebastian Meyer <mail@bastimeyer.de>
This commit is contained in:
parent
83614e1f3e
commit
c5e3921b9f
|
@ -788,6 +788,8 @@ class ExceptionInfo(Generic[E]):
|
||||||
If `None`, will search for a matching exception at any nesting depth.
|
If `None`, will search for a matching exception at any nesting depth.
|
||||||
If >= 1, will only match an exception if it's at the specified depth (depth = 1 being
|
If >= 1, will only match an exception if it's at the specified depth (depth = 1 being
|
||||||
the exceptions contained within the topmost exception group).
|
the exceptions contained within the topmost exception group).
|
||||||
|
|
||||||
|
.. versionadded:: 8.0
|
||||||
"""
|
"""
|
||||||
msg = "Captured exception is not an instance of `BaseExceptionGroup`"
|
msg = "Captured exception is not an instance of `BaseExceptionGroup`"
|
||||||
assert isinstance(self.value, BaseExceptionGroup), msg
|
assert isinstance(self.value, BaseExceptionGroup), msg
|
||||||
|
|
Loading…
Reference in New Issue