Skip to content

Commit 9db3071

Browse files
Changed schema_builder to check in six.integer_types
1 parent d098adc commit 9db3071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery/schema_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def bigquery_type(o, timestamp_parser=default_timestamp_parser):
126126
"""
127127

128128
t = type(o)
129-
if isinstance(t, six.integer_types):
129+
if t in six.integer_types:
130130
return "integer"
131131
elif (t == six.binary_type and six.PY2) or t == six.text_type:
132132
if timestamp_parser and timestamp_parser(o):

0 commit comments

Comments
 (0)