mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
lint
This commit is contained in:
@@ -4,8 +4,9 @@ from sqlalchemy.exc import SQLAlchemyError
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.database import get_db
|
||||
from app.models.stuff import Stuff, RandomStuff
|
||||
from app.schemas.stuff import StuffResponse, StuffSchema, RandomStuff as RandomStuffSchema
|
||||
from app.models.stuff import RandomStuff, Stuff
|
||||
from app.schemas.stuff import RandomStuff as RandomStuffSchema
|
||||
from app.schemas.stuff import StuffResponse, StuffSchema
|
||||
|
||||
logger = AppStructLogger().get_logger()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import uuid
|
||||
|
||||
from sqlalchemy import ForeignKey, String, select
|
||||
from sqlalchemy.dialects.postgresql import UUID
|
||||
from sqlalchemy.dialects.postgresql import JSON, UUID
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.orm import Mapped, joinedload, mapped_column, relationship
|
||||
|
||||
@@ -9,8 +9,6 @@ from app.models.base import Base
|
||||
from app.models.nonsense import Nonsense
|
||||
from app.utils.decorators import compile_sql_or_scalar
|
||||
|
||||
from sqlalchemy.dialects.postgresql import JSON
|
||||
|
||||
|
||||
class RandomStuff(Base):
|
||||
__tablename__ = "random_stuff"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, Json
|
||||
from typing import Any
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user