From e3fb655fb00d3cf7cda58d106df446bf0f2d53ce Mon Sep 17 00:00:00 2001 From: Tiago Date: Fri, 13 Feb 2026 14:51:39 +0000 Subject: [PATCH] Enumerable#include? should receive any object this checks only if an object exists in the collection, regardless of type. ruby does not raise an exception if the types don't match. --- core/enumerable.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/enumerable.rbs b/core/enumerable.rbs index 4543e0959..8ac945490 100644 --- a/core/enumerable.rbs +++ b/core/enumerable.rbs @@ -816,7 +816,7 @@ module Enumerable[unchecked out Elem] : _Each[Elem] # {foo: 0, bar: 1, baz: 2}.include?('foo') # => false # {foo: 0, bar: 1, baz: 2}.include?(0) # => false # - def include?: (Elem arg0) -> bool + def include?: (untyped arg0) -> bool #