From cda114e0e4b3655756ad29353208284f16f0dd76 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 Nov 2025 09:08:36 -0800 Subject: [PATCH] bin/gen_release_notes: Remove cast that does nothing Without an assignment this cast is dead code. Cast's in python work like: ```python from typing import cast x = ['a', 'b', 'c'] x = cast(list[str | int], x) x.append(5) ``` Part-of: --- bin/gen_release_notes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 222ff653dc8..dbbe4ec5ccd 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -226,7 +226,6 @@ async def gather_bugs(version: str) -> typing.List[str]: loop = asyncio.get_event_loop() async with aiohttp.ClientSession(loop=loop) as session: results = await asyncio.gather(*[get_bug(session, i) for i in issues]) - typing.cast(typing.Tuple[str, ...], results) bugs = list(results) if not bugs: bugs = ['None']