Skip to content

Commit 7c6b2f2

Browse files
committed
♻️ refactor: remove noqa comment for unused User type in Post model
1 parent 4beb51e commit 7c6b2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Post(Base, TimestampMixin):
2323
owner_id: Mapped[int] = mapped_column(
2424
Integer, ForeignKey("users.id", ondelete="CASCADE"), nullable=False
2525
)
26-
owner: Mapped[User] = relationship(back_populates="posts") # noqa: F821
26+
owner: Mapped[User] = relationship(back_populates="posts")
2727

2828
def __repr__(self) -> str:
2929
return f"Post(id={self.id}, title={self.title}, published={self.published}, owner_id={self.owner_id}, created_at={self.created_at}, owner={self.owner})" # noqa: E501

0 commit comments

Comments
 (0)