From 1e41843177fc1b4aead759cc7f305f5faa9fbaf8 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Mon, 8 Sep 2025 17:00:47 +0900 Subject: [PATCH] Update `string.rbs` to avoid deprecation warning in Steep --- core/string.rbs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/string.rbs b/core/string.rbs index ffc70b85c2..b28e1bb59f 100644 --- a/core/string.rbs +++ b/core/string.rbs @@ -3580,4 +3580,15 @@ interface _ArefFromStringToString end %a{deprecated} -type String::encode_fallback = Hash[String, String] | Proc | Method | _ArefFromStringToString +type String::encode_fallback = Hash[String, String] | Proc | Method | String::_ArefFromStringToString + +# Don't use this interface directly +# +# This is a copy of `::_ArefFromStringToString` but without deprecated attribute. +# This is a workaround to avoid deprecation warnings in `String::encode_fallback` type. +# +# This type will be deprecated soon once `::_ArefFromStringToString` and `String::encode_fallback` are removed. +# +interface String::_ArefFromStringToString + def []: (String) -> String +end