⬆ Upgrade code to support pydantic V2 (#615)

This commit is contained in:
Esteban Maya
2024-02-28 17:24:24 -05:00
committed by GitHub
parent 2346b81c51
commit 08395759fe
7 changed files with 47 additions and 40 deletions
@@ -1,7 +1,7 @@
from typing import Any
from fastapi import APIRouter, Depends, HTTPException
from sqlmodel import func, select, delete
from sqlmodel import delete, func, select
from app import crud
from app.api.deps import (
@@ -12,6 +12,7 @@ from app.api.deps import (
from app.core.config import settings
from app.core.security import get_password_hash, verify_password
from app.models import (
Item,
Message,
UpdatePassword,
User,
@@ -21,7 +22,6 @@ from app.models import (
UsersOut,
UserUpdate,
UserUpdateMe,
Item
)
from app.utils import send_new_account_email