Skip to content

Commit cd93a68

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

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
@@ -25,7 +25,7 @@ def test_array_creation_existing_node(
2525
"""
2626
spath = StorePath(store)
2727
group = Group.create(spath, zarr_format=zarr_format)
28-
expected_exception: type[ContainsArrayError] | type[ContainsGroupError]
28+
expected_exception: type[ContainsArrayError | ContainsGroupError]
2929
if extant_node == "array":
3030
expected_exception = ContainsArrayError
3131
_ = 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
@@ -404,7 +404,7 @@ def test_group_creation_existing_node(
404404
"""
405405
spath = StorePath(store)
406406
group = Group.create(spath, zarr_format=zarr_format)
407-
expected_exception: type[ContainsArrayError] | type[ContainsGroupError]
407+
expected_exception: type[ContainsArrayError | ContainsGroupError]
408408
attributes = {"old": True}
409409

410410
if extant_node == "array":

0 commit comments

Comments
 (0)