Skip to content
Snippets Groups Projects
Verified Commit e1c153f0 authored by Jakob Moser's avatar Jakob Moser
Browse files

Route may not necessarily return a ProblemResponse

parent c40f2ff0
No related branches found
No related tags found
1 merge request!22Make MyPy happy
......@@ -53,7 +53,7 @@ def require_valid(credential_type: type[User | Key]) -> Callable:
def decorator(route: Callable) -> Callable:
@functools.wraps(route)
def protected_route(**kwargs: Any) -> ProblemResponse:
def protected_route(**kwargs: Any) -> Any:
# Determine which credentials to use
credentials = {User: g.user, Key: g.key}.get(credential_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment