From c39a85e5f4efc9e8875802bb838f0ed91c6336ba Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 5 Mar 2020 03:15:14 +0100 Subject: [PATCH] doc: revisit UnformattedWarning --- src/_pytest/warning_types.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_pytest/warning_types.py b/src/_pytest/warning_types.py index e99de5c47..ee437cc97 100644 --- a/src/_pytest/warning_types.py +++ b/src/_pytest/warning_types.py @@ -89,7 +89,10 @@ _W = TypeVar("_W", bound=PytestWarning) @attr.s class UnformattedWarning(Generic[_W]): - """Used to hold warnings that need to format their message at runtime, as opposed to a direct message. + """A warning meant to be formatted during runtime. + + This is used to hold warnings that need to format their message at runtime, + as opposed to a direct message. """ category = attr.ib(type="Type[_W]")