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