From d05fe7516e5a3cd09656ccce6f0a7276dff9e0c6 Mon Sep 17 00:00:00 2001 From: AnnaYasenova Date: Tue, 20 Aug 2019 12:38:20 +0300 Subject: [PATCH] Update compat.py --- twython/compat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twython/compat.py b/twython/compat.py index 7c049b0..2ee7d37 100644 --- a/twython/compat.py +++ b/twython/compat.py @@ -9,6 +9,7 @@ Python 3 compatibility. """ import sys +import numpy as np _ver = sys.version_info @@ -29,7 +30,7 @@ if is_py2: str = unicode basestring = basestring - numeric_types = (int, long, float) + numeric_types = (int, long, float, np.int64, np.float64) elif is_py3: @@ -37,4 +38,4 @@ elif is_py3: str = str basestring = (str, bytes) - numeric_types = (int, float) + numeric_types = (int, float, np.int64, np.float64)