Skip to content

Commit 00945a6

Browse files
committed
Add types
1 parent 7a442e1 commit 00945a6

File tree

1 file changed

+9
-9
lines changed
  • src/zarr/core/metadata

1 file changed

+9
-9
lines changed

src/zarr/core/metadata/v3.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from zarr.core.buffer.core import default_buffer_prototype
88

99
if TYPE_CHECKING:
10-
from typing import Self
10+
from typing import Callable, Self
1111

1212
from zarr.core.buffer import Buffer, BufferPrototype
1313
from zarr.core.chunk_grids import ChunkGrid
@@ -137,14 +137,14 @@ class V3JsonEncoder(json.JSONEncoder):
137137
def __init__(
138138
self,
139139
*,
140-
skipkeys=False,
141-
ensure_ascii=True,
142-
check_circular=True,
143-
allow_nan=True,
144-
sort_keys=False,
145-
indent=None,
146-
separators=None,
147-
default=None,
140+
skipkeys: bool = False,
141+
ensure_ascii: bool = True,
142+
check_circular: bool = True,
143+
allow_nan: bool = True,
144+
sort_keys: bool = False,
145+
indent: int | None = None,
146+
separators: tuple[str, str] | None = None,
147+
default: Callable | None = None,
148148
) -> None:
149149
if indent is None:
150150
indent = config.get("json_indent")

0 commit comments

Comments
 (0)