From 151bec0d9e683a0c8da93796a7468c999c6aecd0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 16:44:13 +0200 Subject: [PATCH] Fix type error. --- etebase_fastapi/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etebase_fastapi/authentication.py b/etebase_fastapi/authentication.py index a211e9b..559a60a 100644 --- a/etebase_fastapi/authentication.py +++ b/etebase_fastapi/authentication.py @@ -261,6 +261,6 @@ def signup_save(data: SignupIn, request: Request) -> User: @authentication_router.post("/signup/", response_model=LoginOut, status_code=status.HTTP_201_CREATED) def signup(data: SignupIn, request: Request): user = signup_save(data, request) - data = LoginOut.from_orm(user) + ret = LoginOut.from_orm(user) user_signed_up.send(sender=user.__class__, request=None, user=user) - return data + return ret