Skip to content

Commit 23ed645

Browse files
committed
Added fix for long and Decimal numeric types
1 parent ef36ae7 commit 23ed645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jmespath/visitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from jmespath import functions
44
from jmespath.compat import string_type
5+
from numbers import Number
56

67

78
def _equals(x, y):
@@ -52,7 +53,7 @@ def _is_actual_number(x):
5253
# True
5354
if x is True or x is False:
5455
return False
55-
return isinstance(x, (float, int))
56+
return isinstance(x, Number)
5657

5758

5859
class Options(object):

0 commit comments

Comments
 (0)