diff --git a/src/Lookups/lookup_arrays.jl b/src/Lookups/lookup_arrays.jl index 4d8210a50..b9ae79fc0 100644 --- a/src/Lookups/lookup_arrays.jl +++ b/src/Lookups/lookup_arrays.jl @@ -470,7 +470,7 @@ abstract type AbstractCategorical{T,O} <: Aligned{T,O} end order(lookup::AbstractCategorical) = lookup.order metadata(lookup::AbstractCategorical) = lookup.metadata -const CategoricalEltypes = Union{AbstractChar,Symbol,AbstractString} +const CategoricalEltypes = Union{AbstractChar,Symbol,AbstractString,DataType} function Adapt.adapt_structure(to, l::AbstractCategorical) rebuild(l; data=Adapt.adapt(to, parent(l)), metadata=NoMetadata())