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:
@@ -65,11 +65,11 @@ class ImportSettings(Base):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def load(cls, session) -> "ImportSettings":
|
async def load(cls, session) -> ImportSettings:
|
||||||
"""The singleton settings row (id=1), via an async session."""
|
"""The singleton settings row (id=1), via an async session."""
|
||||||
return (await session.execute(select(cls).where(cls.id == 1))).scalar_one()
|
return (await session.execute(select(cls).where(cls.id == 1))).scalar_one()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load_sync(cls, session) -> "ImportSettings":
|
def load_sync(cls, session) -> ImportSettings:
|
||||||
"""The singleton settings row (id=1), via a sync session."""
|
"""The singleton settings row (id=1), via a sync session."""
|
||||||
return session.execute(select(cls).where(cls.id == 1)).scalar_one()
|
return session.execute(select(cls).where(cls.id == 1)).scalar_one()
|
||||||
|
|||||||
Reference in New Issue
Block a user