Skip to content

Commit

Permalink
src/sage/calculus/expr.py: Move imports from method to module
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed May 12, 2024
1 parent 33a1ac4 commit d64bfa1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sage/calculus/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"""

from sage.misc.lazy_import import lazy_import
from sage.structure.element import is_Matrix
from sage.symbolic.expression import Expression
from sage.symbolic.ring import SR

lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement'])
lazy_import('sage.matrix.constructor', 'matrix')
Expand Down Expand Up @@ -163,10 +166,6 @@ def symbolic_expression(x):
TypeError: unable to convert <function function_with_keyword_only_arg at 0x...>
to a symbolic expression
"""
from sage.structure.element import is_Matrix
from sage.symbolic.expression import Expression
from sage.symbolic.ring import SR

if isinstance(x, Expression):
return x
elif hasattr(x, '_symbolic_'):
Expand Down

0 comments on commit d64bfa1

Please sign in to comment.