Skip to content

Commit 7472b13

Browse files
committed
[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
1 parent 29c69fe commit 7472b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/gdb/gdb/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ class ExitedEvent(Event):
960960
exit_code: int
961961
inferior: Inferior
962962

963-
class ThreadExitedEvent(Event): ...
963+
class ThreadExitedEvent(ThreadEvent): ...
964964

965965
class StopEvent(ThreadEvent):
966966
details: dict[str, object]

0 commit comments

Comments
 (0)