Skip to content

Commit eca843b

Browse files
Apply Pylint rule C0325 (superfluous-parens)
Unnecessary parens after 'not' keyword
1 parent 44381cd commit eca843b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/zarr/core/dtype/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def check_structured_dtype_v2_inner(data: object) -> TypeGuard[StructuredName_V2
8080
return False
8181
if len(data) != 2:
8282
return False
83-
if not (isinstance(data[0], str)):
83+
if not isinstance(data[0], str):
8484
return False
8585
if isinstance(data[-1], str):
8686
return True

tests/test_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ def test_create_array_defaults(store: Store) -> None:
144144
assert isinstance(g, Group)
145145
arr = g.create_array("one", dtype="i8", shape=(1,), chunks=(1,), compressor=None)
146146
assert arr._async_array.compressor is None
147-
assert not (arr.filters)
147+
assert not arr.filters
148148
arr = g.create_array("two", dtype="i8", shape=(1,), chunks=(1,))
149149
assert arr._async_array.compressor is not None
150-
assert not (arr.filters)
150+
assert not arr.filters
151151
arr = g.create_array("three", dtype="i8", shape=(1,), chunks=(1,), compressor=Zstd())
152152
assert arr._async_array.compressor is not None
153-
assert not (arr.filters)
153+
assert not arr.filters
154154
with pytest.raises(ValueError):
155155
g.create_array(
156156
"four", dtype="i8", shape=(1,), chunks=(1,), compressor=None, compressors=None

0 commit comments

Comments
 (0)