From 10bfd93dd4553b4c963260b6e8e4b2c9aa0675b4 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 23 Nov 2026 12:09:15 +1300 Subject: [PATCH 1/5] bump 4.0 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 6b552d1..7da7a45 100644 --- a/Project.toml +++ b/Project.toml @@ -22,7 +22,7 @@ REPL = "<0.0.1, 1" Random = "<0.0.1, 1" ScientificTypes = "3" ScientificTypesBase = "3" -StatisticalTraits = "3.5" +StatisticalTraits = "3.5, 4.0" Tables = "1" Test = "<0.0.1, 1" julia = "1.6" From 7d2d1ddab28c2fcf6d6c7c29e583dfae16e18ca1 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 23 Nov 2026 12:14:07 +1300 Subject: [PATCH 2/5] extend OrderedCollections = "1,2" --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 7da7a45..b1a70f3 100644 --- a/Project.toml +++ b/Project.toml @@ -17,7 +17,7 @@ DataFrames = "1" Distances = "0.10" InteractiveUtils = "<0.0.1, 1" Markdown = "<0.0.1, 1" -OrderedCollections = "1" +OrderedCollections = "1,2" REPL = "<0.0.1, 1" Random = "<0.0.1, 1" ScientificTypes = "3" From 6d461125a1b94f11be52f096a981f234612ab6d5 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 23 Nov 2026 12:26:41 +1300 Subject: [PATCH 3/5] address method ambiguity detected by Aqua --- src/equality.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/equality.jl b/src/equality.jl index 5b0ed27..ccf3aee 100644 --- a/src/equality.jl +++ b/src/equality.jl @@ -144,8 +144,6 @@ end # equality and a corresponding definition of `in`. Base.isequal(m1::MLJType, m2::MLJType) = (m1 === m2) -# Note: To prevent julia crash, it seems we need to annotate the type -# of itr: function special_in(x, itr)::Union{Bool,Missing} for y in itr ismissing(y) && return missing @@ -154,9 +152,12 @@ function special_in(x, itr)::Union{Bool,Missing} return false end +# Note: To address some method ambiguities, it seems we need to annotate +# the type of itr: Base.in(x::MLJType, itr::Set) = special_in(x, itr) Base.in(x::MLJType, itr::AbstractVector{<:MLJType}) = special_in(x, itr) Base.in(x::MLJType, itr::AbstractRange{<:MLJType}) = special_in(x, itr) +Base.in(x::MLJType, itr::Base.ReshapedVector{<:MLJType}) = special_in(x, itr) Base.in(x::MLJType, itr::Tuple) = special_in(x, itr) Base.in(x::MLJType, itr::Tuple{(Any for _ in 1:32)..., Vararg{Any}}) = special_in(x, itr) From 2d949740f0ad7b3c74d86068102a5762e16e754b Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 23 Nov 2026 12:32:46 +1300 Subject: [PATCH 4/5] oops, fix syntax error --- src/equality.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/equality.jl b/src/equality.jl index ccf3aee..91857c2 100644 --- a/src/equality.jl +++ b/src/equality.jl @@ -157,7 +157,7 @@ end Base.in(x::MLJType, itr::Set) = special_in(x, itr) Base.in(x::MLJType, itr::AbstractVector{<:MLJType}) = special_in(x, itr) Base.in(x::MLJType, itr::AbstractRange{<:MLJType}) = special_in(x, itr) -Base.in(x::MLJType, itr::Base.ReshapedVector{<:MLJType}) = special_in(x, itr) +Base.in(x::MLJType, itr::Base.ReshapedArray{<:MLJType,1}) = special_in(x, itr) Base.in(x::MLJType, itr::Tuple) = special_in(x, itr) Base.in(x::MLJType, itr::Tuple{(Any for _ in 1:32)..., Vararg{Any}}) = special_in(x, itr) From 05e2f9da91c3b9ee9e77110edd19c336cd9d0c42 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 23 Nov 2026 12:37:17 +1300 Subject: [PATCH 5/5] bump 1.12.2 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index b1a70f3..e4361fa 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJModelInterface" uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea" authors = ["Thibaut Lienart and Anthony Blaom"] -version = "1.12.1" +version = "1.12.2" [deps] InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"