refactor: centralize type aliases in types.py and simplify crud layer

This commit is contained in:
2026-03-01 07:40:18 -05:00
parent fddfc98acc
commit bcf0c3becb
7 changed files with 137 additions and 168 deletions

View File

@@ -1,10 +1,12 @@
"""Base Pydantic schemas for API responses."""
from enum import Enum
from typing import Any, ClassVar, Generic, TypeVar
from typing import Any, ClassVar, Generic
from pydantic import BaseModel, ConfigDict
from .types import DataT
__all__ = [
"ApiError",
"CursorPagination",
@@ -16,8 +18,6 @@ __all__ = [
"ResponseStatus",
]
DataT = TypeVar("DataT")
class PydanticBase(BaseModel):
"""Base class for all Pydantic models with common configuration."""