Skip to content

Commit 86a9845

Browse files
authored
Merge pull request #220 from JuliaAI/tweak-overloading-of-in
Tweak overloading of `Base.in`
2 parents cfc927b + c1cb8fb commit 86a9845

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/equality.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Base.in(x::MLJType, itr::Set) = special_in(x, itr)
158158
Base.in(x::MLJType, itr::AbstractVector{<:MLJType}) = special_in(x, itr)
159159
Base.in(x::MLJType, itr::AbstractRange{<:MLJType}) = special_in(x, itr)
160160
Base.in(x::MLJType, itr::Tuple) = special_in(x, itr)
161+
Base.in(x::MLJType, itr::Tuple{(Any for _ in 1:32)..., Vararg{Any}}) = special_in(x, itr)
161162

162163
# A version of `in` that actually uses `==`:
163164

0 commit comments

Comments
 (0)