Skip to content

Commit

Permalink
refactor: Mv errors to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Aug 21, 2024
1 parent f10a43c commit 1343ae9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eoapi/auth_utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from fastapi.security.base import SecurityBase
from pydantic import AnyHttpUrl

from .types import OidcFetchError
from .errors import OidcFetchError

if TYPE_CHECKING:
from .config import OpenIdConnectSettings
Expand Down
2 changes: 2 additions & 0 deletions eoapi/auth_utils/errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class OidcFetchError(Exception):
pass
4 changes: 0 additions & 4 deletions eoapi/auth_utils/types.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from typing import Optional, TypedDict


class OidcFetchError(Exception):
pass


class Scope(TypedDict, total=False):
"""More strict version of Starlette's Scope."""

Expand Down

0 comments on commit 1343ae9

Please sign in to comment.