Skip to content

Commit 69dc8ed

Browse files
committed
fix #18 - update int64 recognition heuristics for Python 3.7
1 parent 56c3026 commit 69dc8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabulate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def _isint(string, inttype=int):
869869
return (
870870
type(string) is inttype
871871
or (
872-
hasattr(string, "is_integer")
872+
(hasattr(string, "is_integer") or hasattr(string, "__array__"))
873873
and str(type(string)).startswith("<class 'numpy.int")
874874
) # numpy.int64 and similar
875875
or (

0 commit comments

Comments
 (0)