Skip to content

Commit a2f9b6e

Browse files
committed
Update
1 parent 4ca120b commit a2f9b6e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Bridges/lazy_bridge_optimizer.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Return the list of `VariableNode` that would be added if `BT` is used in `b`.
156156
"""
157157
function _variable_nodes(
158158
@nospecialize(b::LazyBridgeOptimizer),
159-
@nospecialize(BT::Type{<:AbstractBridge}),
159+
@nospecialize(BT),
160160
)
161161
return map(added_constrained_variable_types(BT)) do (S,)
162162
return node(b, S)::VariableNode
@@ -170,7 +170,7 @@ Return the list of `ConstraintNode` that would be added if `BT` is used in `b`.
170170
"""
171171
function _constraint_nodes(
172172
@nospecialize(b::LazyBridgeOptimizer),
173-
@nospecialize(BT::Type{<:AbstractBridge}),
173+
@nospecialize(BT),
174174
)
175175
return ConstraintNode[
176176
node(b, F, S) for (F, S) in added_constraint_types(BT)
@@ -251,7 +251,10 @@ end
251251
252252
Return the `VariableNode` associated with set `S` in `b`.
253253
"""
254-
function node(b::LazyBridgeOptimizer, S::Type{<:MOI.AbstractSet})
254+
function node(
255+
@nospecialize(b::LazyBridgeOptimizer),
256+
@nospecialize(S::Type{<:MOI.AbstractSet}),
257+
)
255258
# If we support the set, the node is 0.
256259
if (
257260
S <: MOI.AbstractScalarSet &&
@@ -400,7 +403,7 @@ end
400403
Enable the use of the bridges of type `BT` by `b`.
401404
"""
402405
function add_bridge(
403-
@nospecialize(b::LazyBridgeOptimizer),
406+
@nospecialize(b::LazyBridgeOptimizer),
404407
@nospecialize(BT::Type{<:AbstractBridge}),
405408
)
406409
if !has_bridge(b, BT)

0 commit comments

Comments
 (0)