Skip to content

Commit 0ea71df

Browse files
Apply ruff/flake8-pyi rule PYI055
PYI055 Multiple `type` members in a union. Combine them into one.
1 parent afe6828 commit 0ea71df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/v3/test_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_array_creation_existing_node(
2727
"""
2828
spath = StorePath(store)
2929
group = Group.from_store(spath, zarr_format=zarr_format)
30-
expected_exception: type[ContainsArrayError] | type[ContainsGroupError]
30+
expected_exception: type[ContainsArrayError | ContainsGroupError]
3131
if extant_node == "array":
3232
expected_exception = ContainsArrayError
3333
_ = group.create_array("extant", shape=(10,), dtype="uint8")

tests/v3/test_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def test_group_creation_existing_node(
468468
"""
469469
spath = StorePath(store)
470470
group = Group.from_store(spath, zarr_format=zarr_format)
471-
expected_exception: type[ContainsArrayError] | type[ContainsGroupError]
471+
expected_exception: type[ContainsArrayError | ContainsGroupError]
472472
attributes: dict[str, JSON] = {"old": True}
473473

474474
if extant_node == "array":

0 commit comments

Comments
 (0)