From a208c5b5891cbe6526d021c2a95cb51f3adc6ecd Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Sun, 7 Apr 2024 11:23:23 -0400 Subject: [PATCH 1/3] Use Type not DataType --- src/ndgrid-oneto.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ndgrid-oneto.jl b/src/ndgrid-oneto.jl index 72434cd..a326766 100644 --- a/src/ndgrid-oneto.jl +++ b/src/ndgrid-oneto.jl @@ -14,9 +14,8 @@ where `1 ≤ d ≤ D`. struct GridOT{T,d,D} <: AbstractGrid{T,d,D} dims::Dims{D} - function GridOT(T::DataType, dims::Dims{D}, d::Int) where D + function GridOT(T::Type{<:Integer}, dims::Dims{D}, d::Int) where D 1 ≤ d ≤ D || throw(ArgumentError("$d for $dims")) - T <: Integer || throw(ArgumentError("T = $T")) new{T,d,D}(dims) end end From 41a52911fbcd0b332c4b92fbf079597e2cde8d58 Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Sun, 7 Apr 2024 11:27:38 -0400 Subject: [PATCH 2/3] Test only Julia 1.10 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d9471e1..dcdfff7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ julia> sizeof(xg) # show number of bytes used ### Compatibility -Tested with Julia ≥ 1.9. +Tested with Julia ≥ 1.10. From 59c05739f1f97b0045407a89a89a9520c5e82ef7 Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Sun, 7 Apr 2024 11:27:54 -0400 Subject: [PATCH 3/3] Update compat for Aqua, Statistics --- Project.toml | 3 ++- test/Project.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index eabed51..9de1e35 100644 --- a/Project.toml +++ b/Project.toml @@ -7,4 +7,5 @@ version = "0.5.0" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [compat] -julia = "1.9" +Statistics = "1" +julia = "1.10" diff --git a/test/Project.toml b/test/Project.toml index 7fc0c39..0b4cac8 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -4,4 +4,4 @@ BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] -Aqua = "0.5" +Aqua = "0.8"