Skip to content

Commit b1605e3

Browse files
committed
fix: use six integer_types and string_types in place of int and basestring
1 parent 29dcb7f commit b1605e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema_salad/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def validate_ex(expected_schema, # type: Schema
213213
continue
214214
elif isinstance(datum, dict) and not isinstance(s, avro.schema.RecordSchema):
215215
continue
216-
elif isinstance(datum, (bool, int, int, float, int)) and isinstance(s, (avro.schema.ArraySchema, avro.schema.RecordSchema)):
216+
elif isinstance(datum, (bool, six.integer_types, float, six.string_types)) and isinstance(s, (avro.schema.ArraySchema, avro.schema.RecordSchema)): # type: ignore
217217
continue
218218
elif datum is not None and s.type == "null":
219219
continue

0 commit comments

Comments
 (0)