Skip to content

Commit

Permalink
simplify the type extension
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Dec 16, 2023
1 parent 7259a63 commit 8ffe64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraint_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ interval bound for all variables, it is impossible to use a tuple (since its
length is 2); in such case use `bound = Ref((minimum, maximum))`, which has the
correct length.
"""
function variables(; keys::Union{Vector{Symbol},Set{Symbol}}, bounds = nothing)
function variables(; keys::AbstractVector{Symbol}, bounds = nothing)
bs =
isnothing(bounds) ? Base.Iterators.cycle(tuple(nothing)) :
length(bounds) == 1 ? Base.Iterators.cycle(bounds) :
Expand Down

0 comments on commit 8ffe64d

Please sign in to comment.