Skip to content

Commit 3523ab7

Browse files
committed
fix typing with Optional[]
1 parent 884150e commit 3523ab7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zarrita/codecs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def compute_encoded_size(self, input_byte_length: int) -> int:
547547

548548

549549
def blosc_codec(
550-
typesize: int | None = None,
550+
typesize: Optional[int] = None,
551551
cname: Literal["lz4", "lz4hc", "blosclz", "zstd", "snappy", "zlib"] = "zstd",
552552
clevel: int = 5,
553553
shuffle: Literal["noshuffle", "shuffle", "bitshuffle"] = "noshuffle",

zarrita/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def encode_chunk_key(self, chunk_coords: ChunkCoords) -> str:
149149

150150
@frozen
151151
class BloscCodecConfigurationMetadata:
152-
typesize: int | None = None
152+
typesize: Optional[int] = None
153153
cname: Literal["lz4", "lz4hc", "blosclz", "zstd", "snappy", "zlib"] = "zstd"
154154
clevel: int = 5
155155
shuffle: BloscShuffle = "noshuffle"

0 commit comments

Comments
 (0)