doc: revisit UnformattedWarning

This commit is contained in:
Daniel Hahler 2020-03-05 03:15:14 +01:00
parent b90f57d25c
commit c39a85e5f4
1 changed files with 4 additions and 1 deletions

View File

@ -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]")