From 7472b1316633971b82e4037e70e17b4c4456edfe Mon Sep 17 00:00:00 2001 From: "Dennis Lambe Jr." Date: Thu, 18 Sep 2025 14:56:34 -0400 Subject: [PATCH] [gdb] Update ThreadExitedEvent parent class for 17.0 (#14729) Even though the parent thread for `ThreadExitedEvent` won't change from `Event` to `ThreadEvent` until 17.0 is released, this actually makes type checking work better in practice for all released versions that support `ThreadExitedEvent` because at run time `ThreadExitedEvent` has the lone attribute, `inferior_thread`, that it would have inherited from `ThreadEvent`. Upstream GDB issue: * https://sourceware.org/bugzilla/show_bug.cgi?id=33444 --- stubs/gdb/gdb/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/gdb/gdb/__init__.pyi b/stubs/gdb/gdb/__init__.pyi index 0a909b225bb0..d533a95e392c 100644 --- a/stubs/gdb/gdb/__init__.pyi +++ b/stubs/gdb/gdb/__init__.pyi @@ -960,7 +960,7 @@ class ExitedEvent(Event): exit_code: int inferior: Inferior -class ThreadExitedEvent(Event): ... +class ThreadExitedEvent(ThreadEvent): ... class StopEvent(ThreadEvent): details: dict[str, object]