Skip to content

Commit cd60c91

Browse files
committed
fix: fix depwarn due to wrapping Vararg directly in UnionAll
1 parent 349e9d5 commit cd60c91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/systems/connectors.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ ignored. All analysis points in `ignored_system_aps` must contain systems (conne
448448
as their input/outputs.
449449
"""
450450
function systems_to_ignore(ignored_system_aps::Vector{HierarchyAnalysisPointT},
451-
systems::Union{Vector{<:AbstractSystem}, Tuple{Vararg{<:AbstractSystem}}})
451+
systems::Union{Vector{S}, Tuple{Vararg{S}}}) where S <: AbstractSystem
452452
to_ignore = HierarchySystemT[]
453453
for ap in ignored_system_aps
454454
# if `systems` contains the input of the AP, ignore any outputs of the AP present in it.
@@ -476,7 +476,7 @@ points to be ignored. All analysis points in `ignored_system_aps` must contain v
476476
as their input/outputs.
477477
"""
478478
function variables_to_ignore(ignored_variable_aps::Vector{HierarchyAnalysisPointT},
479-
systems::Union{Vector{<:AbstractSystem}, Tuple{Vararg{<:AbstractSystem}}})
479+
systems::Union{Vector{S}, Tuple{Vararg{S}}}) where S <: AbstractSystem
480480
to_ignore = HierarchyVariableT[]
481481
for ap in ignored_variable_aps
482482
ivar_hierarchy = HierarchyVariableT([ap[1].input; @view ap[2:end]])
@@ -503,7 +503,7 @@ be ignored. All analysis points in `ignored_system_aps` must contain variables a
503503
input/outputs.
504504
"""
505505
function variables_to_ignore(ignored_variable_aps::Vector{HierarchyAnalysisPointT},
506-
vars::Union{Vector{<:BasicSymbolic}, Tuple{Vararg{<:BasicSymbolic}}})
506+
vars::Union{Vector{S}, Tuple{Vararg{S}}}) where S <: BasicSymbolic
507507
to_ignore = eltype(vars)[]
508508
for ap in ignored_variable_aps
509509
ivar_hierarchy = HierarchyVariableT([ap[1].input; @view ap[2:end]])

0 commit comments

Comments
 (0)