Verified Commit 3098ca66 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add some more descriptive type aliases

parent de55edc5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2,9 +2,12 @@
Provide RFC 7807-compliant problem details responses for the API.
"""

from typing import Optional
from typing import Any, Optional

ProblemResponse = tuple[dict, int, dict]
ResponseBody = dict[str, Any]
HttpStatusCode = int
HttpHeaders = dict[str, str]
ProblemResponse = tuple[ResponseBody, HttpStatusCode, HttpHeaders]


def unauthorized() -> ProblemResponse: