From c8b5f1a749af856dc3d79fdaeb7b4d74b13f687c Mon Sep 17 00:00:00 2001 From: Bart de Water <496367+bdewater@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:47:43 -0500 Subject: [PATCH] Annotate ActionController::Parameters#require --- rbi/annotations/actionpack.rbi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rbi/annotations/actionpack.rbi b/rbi/annotations/actionpack.rbi index c8af778d..11133982 100644 --- a/rbi/annotations/actionpack.rbi +++ b/rbi/annotations/actionpack.rbi @@ -111,7 +111,8 @@ class ActionController::Parameters sig { params(key: T.any(String, Symbol)).returns(T.untyped) } def [](key); end - sig { params(key: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(T.untyped) } + sig { params(key: T.any(String, Symbol)).returns(ActionController::Parameters) } + sig { params(key: T::Array[T.any(String, Symbol)]).returns(T::Array[ActionController::Parameters]) } def require(key); end # required is an alias of require