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_CallableSymbolicExpr…
Browse files Browse the repository at this point in the history
…ession
  • Loading branch information
Matthias Koeppe committed Oct 17, 2021
1 parent fad87c0 commit 4bc059b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/ext/fast_callable.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,11 @@ def fast_callable(x, domain=None, vars=None,
et = x
vars = et._etb._vars
else:
from sage.symbolic.callable import is_CallableSymbolicExpression

if not vars:
# fast_float passes empty list/tuple
vars = None

if is_CallableSymbolicExpression(x):
if isinstance(x, Expression_abc) and x.is_callable():
if vars is None:
vars = x.arguments()
if expect_one_var and len(vars) != 1:
Expand Down

0 comments on commit 4bc059b

Please sign in to comment.