Skip to content

Commit

Permalink
Tidy package imports (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jun 4, 2024
1 parent 5f124e6 commit c91a621
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 @@ -6,13 +6,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 @@ -173,7 +173,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 c91a621

Please sign in to comment.