Skip to content

Commit

Permalink
Apply suggestions from code review - Joris
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Van den Bossche <[email protected]>
  • Loading branch information
AlenkaF and jorisvandenbossche authored Jun 20, 2023
1 parent 9a2631b commit 08297d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyarrow/src/arrow/python/inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Status ImportPresentIntervalTypes(OwnedRefNoGIL* interval_types_tuple) {

} // namespace

int import_pyarrow();
import_pyarrow();

#define _NUMPY_UNIFY_NOOP(DTYPE) \
case NPY_##DTYPE: \
Expand Down
4 changes: 2 additions & 2 deletions python/pyarrow/tests/test_convert_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2380,8 +2380,8 @@ def test_array_from_pylist_offset_overflow():
([pa.MonthDayNano([1, -1, -10100])], [pa.scalar(pa.MonthDayNano([1, -1, -10100]))]),
(["a", "b"], [pa.scalar("a"), pa.scalar("b")]),
([b"a", b"b"], [pa.scalar(b"a"), pa.scalar(b"b")]),
([1, 2, 3], pa.scalar([1, 2, 3])),
(["a", "b"], pa.scalar(["a", "b"])),
([[1, 2, 3]], [pa.scalar([1, 2, 3])]),
([["a", "b"]], [pa.scalar(["a", "b"])]),
])
def test_array_accepts_pyarrow_scalar(seq, data, scalar_data):
if type(seq(scalar_data)) == set:
Expand Down

0 comments on commit 08297d0

Please sign in to comment.