Skip to content

Commit a38cfda

Browse files
committed
Fix format
1 parent c00e6be commit a38cfda

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/pyarrow/src/arrow/python/python_to_arrow.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,7 @@ class PyPrimitiveConverter<
672672
ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Scalar> scalar,
673673
arrow::py::unwrap_scalar(value));
674674
ARROW_ASSIGN_OR_RAISE(const Scalar* storage_scalar, GetStorageScalar(*scalar));
675-
ARROW_RETURN_NOT_OK(
676-
this->primitive_builder_->AppendScalar(*storage_scalar));
675+
ARROW_RETURN_NOT_OK(this->primitive_builder_->AppendScalar(*storage_scalar));
677676
} else {
678677
ARROW_ASSIGN_OR_RAISE(
679678
auto converted, PyValue::Convert(this->primitive_type_, this->options_, value));

python/pyarrow/tests/test_extension_type.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,10 +1485,13 @@ def bytes(self):
14851485
with pytest.raises(RuntimeError, match="broken"):
14861486
pa.scalar(bad)
14871487

1488+
14881489
def test_array_from_mismatched_extension_scalar_type():
14891490
scalar = pa.scalar(b"1" * 16, type=ExampleUuidType())
14901491
with pytest.raises(TypeError):
14911492
pa.array([scalar], type=ExampleUuidType2())
1493+
1494+
14921495
def test_array_from_extension_scalars():
14931496
import datetime
14941497
from decimal import Decimal

0 commit comments

Comments
 (0)