Skip to content

Commit

Permalink
Merge pull request #119 from LilithHafner/patch-1
Browse files Browse the repository at this point in the history
Remove Base.Sort.defalg piracy when possible
  • Loading branch information
epatters authored Oct 25, 2022
2 parents befe247 + 5cb7041 commit db1daa5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ using Catlab
using Catlab.WiringDiagrams
using OrdinaryDiffEq

import Base.Sort: defalg, DEFAULT_UNSTABLE

defalg(v::AbstractArray{Missing}) = DEFAULT_UNSTABLE
defalg(v::AbstractArray{Union{}}) = DEFAULT_UNSTABLE
# This is to resolve method ambiguity and is inlcuded in Base as of 1.8
if VERSION < v"1.8.0"
Base.Sort.defalg(v::AbstractArray{Missing}) = Base.DEFAULT_UNSTABLE
Base.Sort.defalg(v::AbstractArray{Union{}}) = Base.DEFAULT_UNSTABLE
end


# Set Literate.jl config if not being compiled on recognized service.
Expand Down

0 comments on commit db1daa5

Please sign in to comment.