Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Aug 27, 2024
1 parent 057af4d commit a8cc140
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,8 @@ cdef class RecordBatch(_Tabular):
c_arr = column
else:
if device_type != CDeviceAllocationType_kCPU:
cpu_device_type = _wrap_device_allocation_type(CDeviceAllocationType_kCPU)
cpu_device_type = _wrap_device_allocation_type(
CDeviceAllocationType_kCPU)
raise TypeError("The column must be allocated on the same "
"device as the RecordBatch. Got column on "
f"device {cpu_device_type!r}, but expected "
Expand Down Expand Up @@ -2913,7 +2914,8 @@ cdef class RecordBatch(_Tabular):
c_arr = column
else:
if device_type != CDeviceAllocationType_kCPU:
cpu_device_type = _wrap_device_allocation_type(CDeviceAllocationType_kCPU)
cpu_device_type = _wrap_device_allocation_type(
CDeviceAllocationType_kCPU)
raise TypeError("The column must be allocated on the same "
"device as the RecordBatch. Got column on "
f"device {cpu_device_type!r}, but expected "
Expand Down

0 comments on commit a8cc140

Please sign in to comment.