Skip to content

Commit 1678641

Browse files
hugovkradarhere
andauthored
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 3e28e05 commit 1678641

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docs/reference/arrow_support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Unsupported Features
6464

6565
* Table/dataframe protocol. We support a single array.
6666
* Null markers, producing or consuming. Null values are inferred from
67-
the mode. e.g. RGB images are stored in the first three bytes of
67+
the mode, e.g. RGB images are stored in the first three bytes of
6868
each 32-bit pixel, and the last byte is an implied null.
6969
* Schema negotiation. There is an optional schema for the requested
7070
datatype in the Arrow source interface. We ignore that

src/libImaging/Storage.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ ImagingBorrowArrow(
586586
int offset_width,
587587
PyObject *arrow_capsule
588588
) {
589-
// offset_width is the # of char* for a single offset from arrow
589+
// offset_width is the number of char* for a single offset from arrow
590590
Py_ssize_t y, i;
591591

592592
char *borrowed_buffer = NULL;
@@ -735,7 +735,6 @@ ImagingNewArrow(
735735
return im;
736736
}
737737
}
738-
// linter: don't mess with the formatting here
739738
if (strcmp(schema->format, "+w:4") == 0 // 4 up array
740739
&& im->pixelsize == 4 // storage as 32 bpc
741740
&& schema->n_children > 0 // make sure schema is well formed.

0 commit comments

Comments
 (0)