Skip to content

Commit

Permalink
Wrapping Vararg directly in UnionAll is deprecated (wrap the tuple …
Browse files Browse the repository at this point in the history
…instead)
  • Loading branch information
Alexander-Barth committed Mar 5, 2024
1 parent a12ec71 commit 630a72b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/datetime.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# contructor of AbstractCFDateTime and methods with AbstractCFDateTime as
# first or main argument

Expand All @@ -16,7 +17,7 @@ for (CFDateTime,calendar) in [(:DateTimeStandard,"standard"),
(:DateTime360Day,"360day")]

@eval begin
function $CFDateTime{T,Torigintuple}(args::Vararg{<:Integer,N}) where {T,Torigintuple,N}
function $CFDateTime{T,Torigintuple}(args::Vararg{Integer,N}) where {T,Torigintuple,N}

DT = $CFDateTime
factor = _factor(T)
Expand Down Expand Up @@ -77,7 +78,7 @@ This type implements the calendar defined as "$($calendar)".
dt = $CFDateTime{typeof(instant),Val(origintuple)}(instant)
end

$CFDateTime(y::Integer,args::Vararg{<:Integer,N}; kwargs...) where N = $CFDateTime(Int64,y,args...; kwargs...)
$CFDateTime(y::Integer,args::Vararg{Integer,N}; kwargs...) where N = $CFDateTime(Int64,y,args...; kwargs...)


function $CFDateTime(p::Period,origintuple::Tuple)
Expand Down

0 comments on commit 630a72b

Please sign in to comment.