Skip to content

Commit

Permalink
fixed annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tabotkevin committed Aug 2, 2024
1 parent e4ff611 commit 5679ff9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dyne/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from typing import Dict, Optional

from starlette.exceptions import HTTPException


def abort(
status_code: int, detail: str | None = None, headers: dict[str, str] | None = None
status_code: int,
detail: Optional[str] = None,
headers: Optional[Dict[str, str]] = None,
) -> None:
raise HTTPException(
status_code=status_code, detail=detail, headers=headers
Expand Down

0 comments on commit 5679ff9

Please sign in to comment.