From b5301ca597879c37fc0da38c26f2a39cc2f44214 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Thu, 19 Mar 2026 21:42:13 +0000 Subject: [PATCH] Fix RBS syntax error The newly-released RBS 4.0 rejects void in union types at the parser level. The (Integer | void) return type on Readable#rewind now causes a hard parse error. Change to `void`, consistent with CompositeIO#rewind and the YARD @return annotation. --- sig/http.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sig/http.rbs b/sig/http.rbs index 1cd30e70..00286ad5 100644 --- a/sig/http.rbs +++ b/sig/http.rbs @@ -1272,7 +1272,7 @@ module HTTP def size: () -> Integer # Rewinds the IO to the beginning - def rewind: () -> (Integer | void) + def rewind: () -> void end class Part