| 
25 | 25 | @pytest.mark.parametrize("as_object_array", [False, True])  | 
26 | 26 | @pytest.mark.parametrize("codecs", [None, [VLenUTF8Codec()], [VLenUTF8Codec(), ZstdCodec()]])  | 
27 | 27 | def test_vlen_string(  | 
28 |  | -    store: Store, dtype: None | np.dtype[Any], as_object_array: bool, codecs: None | list[Codec]  | 
 | 28 | +    store: Store, dtype: np.dtype[Any] | None, as_object_array: bool, codecs: list[Codec] | None  | 
29 | 29 | ) -> None:  | 
30 | 30 |     strings = ["hello", "world", "this", "is", "a", "test"]  | 
31 | 31 |     data = np.array(strings, dtype=dtype).reshape((2, 3))  | 
@@ -62,7 +62,7 @@ def test_vlen_string(  | 
62 | 62 | @pytest.mark.parametrize("store", ["memory", "local"], indirect=["store"])  | 
63 | 63 | @pytest.mark.parametrize("as_object_array", [False, True])  | 
64 | 64 | @pytest.mark.parametrize("codecs", [None, [VLenBytesCodec()], [VLenBytesCodec(), ZstdCodec()]])  | 
65 |  | -def test_vlen_bytes(store: Store, as_object_array: bool, codecs: None | list[Codec]) -> None:  | 
 | 65 | +def test_vlen_bytes(store: Store, as_object_array: bool, codecs: list[Codec] | None) -> None:  | 
66 | 66 |     bstrings = [b"hello", b"world", b"this", b"is", b"a", b"test"]  | 
67 | 67 |     data = np.array(bstrings).reshape((2, 3))  | 
68 | 68 |     assert data.dtype == "|S5"  | 
 | 
0 commit comments