Skip to content

Commit 6af0a2a

Browse files
authored
Merge pull request #1681 from tisnik/lcore-2111-type-hints-in-a2s-storage
LCORE-2111: Type hints in a2a storage module
2 parents 4112a58 + 0270af7 commit 6af0a2a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/a2a_storage/postgres_context_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def get(self, context_id: str) -> Optional[str]:
8383
a2a_context_table.c.context_id == context_id
8484
)
8585
result = await session.execute(stmt)
86-
row = result.scalar_one_or_none()
86+
row: Optional[str] = result.scalar_one_or_none()
8787

8888
if row:
8989
logger.debug("Context %s maps to conversation %s", context_id, row)

src/a2a_storage/sqlite_context_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def get(self, context_id: str) -> Optional[str]:
8282
a2a_context_table.c.context_id == context_id
8383
)
8484
result = await session.execute(stmt)
85-
row = result.scalar_one_or_none()
85+
row: Optional[str] = result.scalar_one_or_none()
8686

8787
if row:
8888
logger.debug("Context %s maps to conversation %s", context_id, row)

0 commit comments

Comments
 (0)