From 2a5533d3a418cb295e982877752566729d47cb65 Mon Sep 17 00:00:00 2001 From: Bart de Water <118401830+bdewater-thatch@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:45:41 -0500 Subject: [PATCH] Fix String#append_as_bytes to accept Integer --- core/string.rbs | 2 +- test/stdlib/String_test.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/string.rbs b/core/string.rbs index 59d3122d4..947af5e63 100644 --- a/core/string.rbs +++ b/core/string.rbs @@ -1623,7 +1623,7 @@ class String # # Related: see [Modifying](rdoc-ref:String@Modifying). # - def append_as_bytes: (String) -> String + def append_as_bytes: (*String | Integer) -> String #