Closed pulsipher closed 1 year ago
Merging #310 (60f696a) into master (c28796f) will increase coverage by
0.05%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #310 +/- ##
==========================================
+ Coverage 99.71% 99.77% +0.05%
==========================================
Files 33 36 +3
Lines 7088 7095 +7
==========================================
+ Hits 7068 7079 +11
+ Misses 20 16 -4
Impacted Files | Coverage Δ | |
---|---|---|
src/constraints.jl | 100.00% <100.00%> (ø) |
This is definitely one weakness of multiple dispatch. You sometimes need to know the right incantation of argument types to get things to dispatch properly. https://github.com/jump-dev/MathOptInterface.jl/pull/2161 is another case where you need to add a very particular method to get things to work.
This is definitely one weakness of multiple dispatch. You sometimes need to know the right incantation of argument types to get things to dispatch properly. jump-dev/MathOptInterface.jl#2161 is another case where you need to add a very particular method to get things to work.
It certainly make backwards compatibility troublesome at times. It is hard to always recognize all the implicit assumptions, like the use of MOI.AbstractSet
in this case.
Fixes the issue discussed in https://github.com/jump-dev/JuMP.jl/issues/3330. It appears we can just enforce
set::MOI.AbstractSet
to fix the problem.I also removed some unnecessary type checks when I was at it.