Skip to content

Commit 0616718

Browse files
committed
Add minimal docstring to __init__
1 parent 698b731 commit 0616718

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/errors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(
3939
instance: str | None = None,
4040
status_code: HTTPStatus | None = None,
4141
) -> None:
42+
"""Initialize an error that can be formatted to a RFC 9457 compliant response."""
4243
self.detail = detail
4344
self._code_override = code
4445
self.instance = instance

0 commit comments

Comments
 (0)