Skip to content

Commit

Permalink
Tidy package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 4, 2024
1 parent e5d3eaa commit 96a70e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/MathOptSymbolicAD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@

module MathOptSymbolicAD

import Base.Meta: isexpr
import MathOptInterface
import MathOptInterface as MOI
import SparseArrays
import Symbolics

const MOI = MathOptInterface

abstract type AbstractSymbolicBackend <:
MOI.Nonlinear.AbstractAutomaticDifferentiation end

Expand Down
2 changes: 1 addition & 1 deletion src/nonlinear_oracle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Parse `expr` into `f` and return a `_Node`.
This function gets called recursively.
"""
function _Node(f::_Function, expr::Expr)
@assert isexpr(expr, :call)
@assert Meta.isexpr(expr, :call)
# Performance optimization: most calls will be unary or binary
# operators. Therefore, we can specialize an if-statement to handle the
# common cases without needing to splat.
Expand Down

0 comments on commit 96a70e6

Please sign in to comment.