Why does Symbolics.@variables return different types dependent on whether a single or multiple variables requested?

See below.

julia> using Symbolics

julia> @variables x::Real
1-element Vector{Num}:
 x

julia> typeof( x )
Vector{Num} (alias for Array{Num, 1})

julia> @variables x::Real y::Real
2-element Vector{Num}:
 x
 y

julia> typeof( x )
Num

Do I just need to always use @variables with a throw-away variable to ensure consistency? Or is the recommended (but undocumented) approach to do x = (Symbolics.@variables x::Real)[1] ?

julia> x = (Symbolics.@variables x::Real)[1]
x

julia> typeof( x )
Num

I cannot recreate what you’re showing.

julia> using Symbolics

julia> @variables x::Real
1-element Vector{Num}:
 x

julia> typeof(x)
Num

Are you on the latest?

 [0c5d862f] Symbolics v5.5.1

Yep - same version. But restarted my REPL and now I can’t reproduce. :man_shrugging: