Skip to content

Commit fff89aa

Browse files
committed
lint
1 parent 92ac3a9 commit fff89aa

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

cpp/src/arrow/python/numpy_to_arrow.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class NumPyConverter {
174174
public:
175175
NumPyConverter(MemoryPool* pool, PyObject* arr, PyObject* mo,
176176
const std::shared_ptr<DataType>& type, bool from_pandas,
177-
const compute::CastOptions& cast_options=compute::CastOptions())
177+
const compute::CastOptions& cast_options = compute::CastOptions())
178178
: pool_(pool),
179179
type_(type),
180180
arr_(reinterpret_cast<PyArrayObject*>(arr)),
@@ -413,7 +413,8 @@ inline Status NumPyConverter::ConvertData(std::shared_ptr<Buffer>* data) {
413413
RETURN_NOT_OK(NumPyDtypeToArrow(reinterpret_cast<PyObject*>(dtype_), &input_type));
414414

415415
if (!input_type->Equals(*type_)) {
416-
RETURN_NOT_OK(CastBuffer(input_type, *data, length_, nullptr, 0, type_, cast_options_, pool_, data));
416+
RETURN_NOT_OK(CastBuffer(input_type, *data, length_, nullptr, 0, type_,
417+
cast_options_, pool_, data));
417418
}
418419

419420
return Status::OK();
@@ -473,7 +474,8 @@ inline Status NumPyConverter::ConvertData<Date32Type>(std::shared_ptr<Buffer>* d
473474
RETURN_NOT_OK(NumPyDtypeToArrow(reinterpret_cast<PyObject*>(dtype_), &input_type));
474475
if (!input_type->Equals(*type_)) {
475476
RETURN_NOT_OK(
476-
CastBuffer(input_type, *data, length_, nullptr, 0, type_, cast_options_, pool_, data));
477+
CastBuffer(input_type, *data, length_, nullptr, 0, type_, cast_options_,
478+
pool_, data));
477479
}
478480
}
479481

@@ -520,7 +522,8 @@ inline Status NumPyConverter::ConvertData<Date64Type>(std::shared_ptr<Buffer>* d
520522
RETURN_NOT_OK(NumPyDtypeToArrow(reinterpret_cast<PyObject*>(dtype_), &input_type));
521523
if (!input_type->Equals(*type_)) {
522524
RETURN_NOT_OK(
523-
CastBuffer(input_type, *data, length_, nullptr, 0, type_, cast_options_, pool_, data));
525+
CastBuffer(input_type, *data, length_, nullptr, 0, type_, cast_options_,
526+
pool_, data));
524527
}
525528
}
526529

cpp/src/arrow/python/numpy_to_arrow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Status NdarrayToArrow(MemoryPool* pool, PyObject* ao, PyObject* mo, bool from_pa
5555
std::shared_ptr<ChunkedArray>* out);
5656

5757
/// Safely convert NumPy arrays to Arrow. If target data type is not known,
58-
/// pass a type with null.
58+
/// pass a type with null.
5959
///
6060
/// \param[in] pool Memory pool for any memory allocations
6161
/// \param[in] ao an ndarray with the array data

0 commit comments

Comments
 (0)