Skip to content

Commit 87935c4

Browse files
committed
Revert
1 parent 2936b64 commit 87935c4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Utilities/model.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ function MOI.is_valid(model::AbstractModel, ci::MOI.ConstraintIndex)
303303
end
304304

305305
function MOI.supports_constraint(
306-
@nospecialize(model::AbstractModel),
307-
@nospecialize(F::Type{<:MOI.AbstractFunction}),
308-
@nospecialize(S::Type{<:MOI.AbstractSet}),
309-
)
306+
model::AbstractModel,
307+
::Type{F},
308+
::Type{S},
309+
) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet}
310310
return MOI.supports_constraint(model.constraints, F, S)
311311
end
312312

src/constraints.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ supported in specific circumstances, for example, `F`-in-`S` constraints cannot
1818
combined with another type of constraint, it should still return `true`.
1919
"""
2020
function supports_constraint(
21-
@nospecialize(::ModelLike),
22-
@nospecialize(F::Type{<:AbstractFunction}),
23-
@nospecialize(S::Type{<:AbstractSet}),
21+
::ModelLike,
22+
F::Type{<:AbstractFunction},
23+
S::Type{<:AbstractSet},
2424
)
2525
return false
2626
end

0 commit comments

Comments
 (0)