Skip to content
Snippets Groups Projects

Make MyPy happy

Merged karp requested to merge make-mypy-happy into master
All threads resolved!
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
+ 5
2
@@ -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:
Loading