From 341337a0089d9f27f759f2c5a3f5b33ee795a75c Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 17 Oct 2021 10:08:01 -0700 Subject: [PATCH] src/sage/ext/fast_callable.pyx: Remove use of is_SymbolicVariable --- src/sage/ext/fast_callable.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sage/ext/fast_callable.pyx b/src/sage/ext/fast_callable.pyx index da1ad9ed5b3..10acc5e3649 100644 --- a/src/sage/ext/fast_callable.pyx +++ b/src/sage/ext/fast_callable.pyx @@ -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: @@ -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)