This commit is contained in:
Tao Chen
2026-04-23 20:46:53 -07:00
Unverified
parent 060c402190
commit 210387ec33
@@ -580,7 +580,10 @@ def _item_to_message(item: Item) -> Message:
item: The Item to convert.
Returns:
The converted Message, or None if the Item type is not supported.
The converted Message.
Raises:
ValueError: If the Item type is not supported.
"""
if item.type == "message":
msg = cast(ItemMessage, item)