Skip to content

Commit

Permalink
reorder check and remove dict
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Oct 6, 2021
1 parent aa588cc commit 6a4be0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/python/inference.cc
Expand Up @@ -356,12 +356,12 @@ class TypeInferrer {
RETURN_NOT_OK(VisitDType(PyArray_DescrFromScalar(obj), keep_going));
} else if (PyList_Check(obj) || PyTuple_Check(obj)) {
RETURN_NOT_OK(VisitList(obj, keep_going));
} else if (PySet_Check(obj) || (Py_TYPE(obj) == &PyDictValues_Type)) {
RETURN_NOT_OK(VisitSet(obj, keep_going));
} else if (PyArray_Check(obj)) {
RETURN_NOT_OK(VisitNdarray(obj, keep_going));
} else if (PyDict_Check(obj)) {
RETURN_NOT_OK(VisitDict(obj));
} else if (PySet_Check(obj)) {
RETURN_NOT_OK(VisitSet(obj, keep_going));
} else if (PyObject_IsInstance(obj, decimal_type_.obj())) {
RETURN_NOT_OK(max_decimal_metadata_.Update(obj));
++decimal_count_;
Expand Down

0 comments on commit 6a4be0e

Please sign in to comment.