refactor: refactor api project with ruff

This commit is contained in:
2025-06-09 12:12:48 +05:00
parent 2e4e9d1113
commit 787dc0e8f8
15 changed files with 100 additions and 112 deletions

View File

@@ -2,7 +2,7 @@ from typing import Optional, List
from datetime import datetime
from pydantic import EmailStr, Field, TypeAdapter
from api.db.tables.account import AccountRole,AccountStatus
from api.db.tables.account import AccountRole, AccountStatus
from api.schemas.base import Base
@@ -19,6 +19,7 @@ class UserUpdate(Base):
created_at: Optional[datetime] = None
status: Optional[AccountStatus] = None
class AllUser(Base):
id: int
name: str
@@ -35,4 +36,5 @@ class AllUserResponse(Base):
amount_count: int
amount_pages: int
all_user_adapter = TypeAdapter(List[AllUser])