Skip to content

Commit 7e5cbbf

Browse files
authored
Add type ignore for item_id in openai_conversations_session
Added type ignore comment for item_id assignment.
1 parent dfa0f37 commit 7e5cbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/memory/openai_conversations_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def pop_item(self) -> TResponseInputItem | None:
8080
items = await self.get_items(limit=1)
8181
if not items:
8282
return None
83-
item_id: str = str(items[0]["id"])
83+
item_id: str = str(items[0]["id"]) # type: ignore[typeddict-item]
8484
await self._openai_client.conversations.items.delete(
8585
conversation_id=session_id, item_id=item_id
8686
)

0 commit comments

Comments
 (0)