From 3ac4a82d59257c135343e29b525c609ede3ecc20 Mon Sep 17 00:00:00 2001 From: mmporong Date: Tue, 27 Oct 2026 11:18:21 +0900 Subject: [PATCH] Process::Status#success? returns nil if the process has not exited `success?` returns `nil` when the child did not exit, for example when it was killed by a signal. The comment above the signature already says so, but the return type was `bool`. Add a test that covers the true, false and nil cases. Assisted-by: Claude:claude-opus-5-5 --- core/process.rbs | 2 +- test/stdlib/Process_test.rb | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/core/process.rbs b/core/process.rbs index cfb6ff4c1..45898705a 100644 --- a/core/process.rbs +++ b/core/process.rbs @@ -2023,7 +2023,7 @@ class Process::Status < Object # * `false` if the process has completed unsuccessfully and exited. # * `nil` if the process has not exited. # - def success?: () -> bool + def success?: () -> bool? #