mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
lint code
This commit is contained in:
@@ -29,7 +29,7 @@ class Stuff(Base):
|
||||
name: Mapped[str] = mapped_column(String, primary_key=True, unique=True)
|
||||
description: Mapped[str | None]
|
||||
|
||||
nonsense: Mapped["Nonsense"] = relationship(
|
||||
nonsense: Mapped[Nonsense] = relationship(
|
||||
"Nonsense", secondary="happy_hog.stuff_full_of_nonsense"
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ class StuffFullOfNonsense(Base):
|
||||
UUID(as_uuid=True), default=uuid.uuid4, primary_key=True
|
||||
)
|
||||
stuff_id: Mapped[Stuff] = mapped_column(UUID, ForeignKey("happy_hog.stuff.id"))
|
||||
nonsense_id: Mapped["Nonsense"] = mapped_column(
|
||||
nonsense_id: Mapped[Nonsense] = mapped_column(
|
||||
UUID, ForeignKey("happy_hog.nonsense.id")
|
||||
)
|
||||
but_why: Mapped[str | None]
|
||||
|
||||
Reference in New Issue
Block a user