aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication/user.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-16 10:28:52 +0000
committerGravatar GitHub <[email protected]>2020-12-16 10:28:52 +0000
commit2c5610d1dbf5d6e8fb112d9dc4d93330a87c6708 (patch)
tree78b7f2269ef04da0f9c3f871ac45a00cf14ca3f6 /backend/authentication/user.py
parentMerge pull request #33 from python-discord/renovate/uvicorn-0.x (diff)
parentMerge branch 'main' into ks123/routes-parsing (diff)
Merge pull request #28 from python-discord/ks123/routes-parsing
Diffstat (limited to 'backend/authentication/user.py')
-rw-r--r--backend/authentication/user.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py
index afa243f..722c348 100644
--- a/backend/authentication/user.py
+++ b/backend/authentication/user.py
@@ -1,13 +1,12 @@
import typing as t
-from abc import ABC
from starlette.authentication import BaseUser
-class User(BaseUser, ABC):
+class User(BaseUser):
"""Starlette BaseUser implementation for JWT authentication."""
- def __init__(self, token: str, payload: t.Dict) -> None:
+ def __init__(self, token: str, payload: dict[str, t.Any]) -> None:
self.token = token
self.payload = payload