Skip to content

Commit 2f8a1cc

Browse files
authored
[Bridges] make attribute_value_type(::ListOfNonstandardBridges) less strict (#2679)
1 parent 2c9894c commit 2f8a1cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Bridges/Bridges.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ end
136136
"""
137137
struct ListOfNonstandardBridges{T} <: MOI.AbstractOptimizerAttribute end
138138

139-
MOI.attribute_value_type(::ListOfNonstandardBridges) = Vector{Type}
139+
# This should be Vector{Type}, but MOI <=v1.37.0 had a bug that meant this was
140+
# not implemented. To maintain backwards compatibility, we make this `Vector`.
141+
MOI.attribute_value_type(::ListOfNonstandardBridges) = Vector
140142

141143
MOI.is_copyable(::ListOfNonstandardBridges) = false
142144

0 commit comments

Comments
 (0)