Fix get_type_of_expression for constants like sympy.pi
Compare changes
+ 12
− 5
@@ -378,15 +378,15 @@ def collate_types(types):
@@ -416,8 +416,15 @@ def get_type_of_expression(expr):
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
()