Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/ext/fast_callable.pyx: Remove use of is_SymbolicVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 17, 2021
1 parent c9861d1 commit 341337a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/ext/fast_callable.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ def fast_callable(x, domain=None, vars=None,
if expect_one_var and len(vars) != 1:
raise ValueError(f"passed expect_one_var=True, but the callable expression takes {len(vars)} arguments")
elif isinstance(x, Expression_abc):
from sage.symbolic.ring import is_SymbolicVariable
if vars is None:
vars = x.variables()
if expect_one_var and len(vars) <= 1:
Expand All @@ -447,7 +446,7 @@ def fast_callable(x, domain=None, vars=None,
else:
raise ValueError("list of variables must be specified for symbolic expressions")
def to_var(var):
if is_SymbolicVariable(var):
if isinstance(var, Expression_abc) and var.is_symbol():
return var
from sage.symbolic.ring import SR
return SR.var(var)
Expand Down

0 comments on commit 341337a

Please sign in to comment.