Skip to content

Commit 1a02d4e

Browse files
committed
lint fixes
1 parent 1159e65 commit 1a02d4e

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

Tests/test_arro3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import json
44
from typing import Any, NamedTuple
5-
from itertools import repeat, chain
65

76
import pytest
87

@@ -17,12 +16,12 @@
1716

1817
TYPE_CHECKING = False
1918
if TYPE_CHECKING:
20-
from arro3.core import Array, DataType, Field, fixed_size_list_array
2119
from arro3 import compute
20+
from arro3.core import Array, DataType, Field, fixed_size_list_array
2221
else:
2322
arro3 = pytest.importorskip("arro3", reason="Arro3 not installed")
24-
from arro3.core import Array, DataType, Field, fixed_size_list_array
2523
from arro3 import compute
24+
from arro3.core import Array, DataType, Field, fixed_size_list_array
2625

2726
TEST_IMAGE_SIZE = (10, 10)
2827

@@ -81,8 +80,10 @@ def _test_img_equals_int32_pyarray(
8180
for ix, elt in enumerate(mask):
8281
assert pixel[ix] == arr_pixel_tuple[elt]
8382

83+
8484
fl_uint8_4_type = DataType.list(Field("_", DataType.uint8()).with_nullable(False), 4)
8585

86+
8687
@pytest.mark.parametrize(
8788
"mode, dtype, mask",
8889
(

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ optional-dependencies.mic = [
5757
"olefile",
5858
]
5959
optional-dependencies.test-arrow = [
60-
"pyarrow",
61-
"arro3-core",
6260
"arro3-compute",
61+
"arro3-core",
62+
"pyarrow",
6363
]
6464

6565
optional-dependencies.tests = [

src/libImaging/Arrow.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,13 @@ single_band_json(Imaging im) {
9898
return NULL;
9999
}
100100

101-
err = PyOS_snprintf(
102-
json,
103-
len,
104-
format,
105-
im->band_names[0]
106-
);
101+
err = PyOS_snprintf(json, len, format, im->band_names[0]);
107102
if (err < 0) {
108103
return NULL;
109104
}
110105
return json;
111106
}
112107

113-
114108
char *
115109
assemble_metadata(const char *band_json) {
116110
/* format is

0 commit comments

Comments
 (0)