From fd78c897114b000e3e76300771dc577d4c1861d0 Mon Sep 17 00:00:00 2001 From: ksss Date: Fri, 30 Jan 2026 23:47:34 +0900 Subject: [PATCH] Undeprecated `with_nonreturn_void?` `with_nonreturn_void?` was deprecated, but after discussion among the maintainers, we decided to revert it. --- sig/method_types.rbs | 2 +- sig/types.rbs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sig/method_types.rbs b/sig/method_types.rbs index 322e3ff8a..eabeeda2d 100644 --- a/sig/method_types.rbs +++ b/sig/method_types.rbs @@ -53,6 +53,6 @@ module RBS def has_classish_type?: () -> bool - %a{deprecated} def with_nonreturn_void?: () -> bool + def with_nonreturn_void?: () -> bool end end diff --git a/sig/types.rbs b/sig/types.rbs index 18db8995b..38b3f75dc 100644 --- a/sig/types.rbs +++ b/sig/types.rbs @@ -54,7 +54,7 @@ module RBS # * The function return type is a return position (`() -> void`) # * Generic parameter is a return position (`Enumerator[Integer, void]`) # - %a{deprecated} def with_nonreturn_void?: () -> bool + def with_nonreturn_void?: () -> bool end # t represents union of all possible types. @@ -213,7 +213,7 @@ module RBS def has_classish_type?: () -> bool - %a{deprecated} def with_nonreturn_void?: () -> bool + def with_nonreturn_void?: () -> bool end class Interface @@ -452,7 +452,7 @@ module RBS def has_classish_type?: () -> bool - %a{deprecated} def with_nonreturn_void?: () -> bool + def with_nonreturn_void?: () -> bool def ==: (untyped) -> bool @@ -495,7 +495,7 @@ module RBS def has_classish_type?: () -> bool - %a{deprecated} def with_nonreturn_void?: () -> bool + def with_nonreturn_void?: () -> bool # Returns `?` def param_to_s: () -> String