我应该如何处理SyntaxError:位置参数跟随关键字参数?



请帮我解决我的问题。我的代码有什么问题?

@dp.inline_handler()
async def inline_handler(query : types.InlineQuery):
text = query.query or "echo"
links = searcher(text)
articles = [types.InlineQueryResultArticle(
id = hashlib.md5(f'{link["id"]}'.encode()),hexdigest(),
title = f'{link["title"]}',
url = f'https://www.youtube.com/watch?v={link["id"]}',
thumb_url = f'{link["thumbnails"][0]}',
input_message_content=types.InputTextMessageContent(
message_text=f'https://www.youtube.com/watch?v={link["id"]}')
) for link in links]
await query.answer(articles, cache_time=60, is_personal=True)

终端显示如下:)浏览链接[^SyntaxError:位置参数跟随关键字参数

问题是id = hashlib.md5(f'{link["id"]}'.encode()),hexdigest(),被解释为两个独立的参数。第一个是关键字id,但第二个没有为其分配关键字,因此是位置的。但至少在Python中,所有位置参数都必须在关键字参数之前,因此出现了问题。我不确定什么关键字参数hexdigest()是指分配给,但我希望这有助于。