Skip to content

Commit

Permalink
fix: Vector{T} gets deserialized to Vector{Any} when empty (#86)
Browse files Browse the repository at this point in the history
* fix: Vector{T} gets deserialized to Vector{Any} when empty

* fix
  • Loading branch information
vdayanand authored Feb 12, 2025
1 parent f18935e commit d79f279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ response(::Type{Date}, data) = str2date(data)
response(::Type{T}, data) where {T} = convert(T, data)
response(::Type{T}, data::Dict{String,Any}) where {T} = from_json(T, data)::T
response(::Type{T}, data::Dict{String,Any}) where {T<:Dict} = convert(T, data)
response(::Type{Vector{T}}, data::Vector{V}) where {T,V} = [response(T, v) for v in data]
response(::Type{Vector{T}}, data::Vector{V}) where {T,V} = T[response(T, v) for v in data]

struct LineChunkReader <: AbstractChunkReader
buffered_input::Base.BufferStream
Expand Down

0 comments on commit d79f279

Please sign in to comment.