mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-03-03 01:40:48 +01:00
refactor: centralize type aliases in types.py and simplify crud layer
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user