fix(lint): UP037 — drop quotes from ImportSettings.load return annotations (py3.14 deferred annotations)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-28 14:08:24 -04:00
parent 171c486939
commit 9d18dacbe8
+2 -2
View File
@@ -65,11 +65,11 @@ class ImportSettings(Base):
)
@classmethod
async def load(cls, session) -> "ImportSettings":
async def load(cls, session) -> ImportSettings:
"""The singleton settings row (id=1), via an async session."""
return (await session.execute(select(cls).where(cls.id == 1))).scalar_one()
@classmethod
def load_sync(cls, session) -> "ImportSettings":
def load_sync(cls, session) -> ImportSettings:
"""The singleton settings row (id=1), via a sync session."""
return session.execute(select(cls).where(cls.id == 1)).scalar_one()