Skip to content

Fix get_type_of_expression for constants like sympy.pi

Problem: some constant expressions are neither Float,Integer,Rational and don't have arguments.

>>> from sympy import *
>>> isinstance(pi, Integer)
False
>>> isinstance(pi, Float)
False
>>> isinstance(pi, Rational)
False
>>> pi.args
()
Edited by Stephan Seitz

Merge request reports