From a208c5b5891cbe6526d021c2a95cb51f3adc6ecd Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Sun, 7 Apr 2024 11:23:23 -0400 Subject: [PATCH] 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