Skip to content

Commit 1442f4a

Browse files
committed
Add types
1 parent 7a442e1 commit 1442f4a

File tree

1 file changed

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

1 file changed

+9
-8
lines changed

src/zarr/core/metadata/v3.py

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

99
if TYPE_CHECKING:
10+
from collections.abc import Callable
1011
from typing import Self
1112

1213
from zarr.core.buffer import Buffer, BufferPrototype
@@ -137,14 +138,14 @@ class V3JsonEncoder(json.JSONEncoder):
137138
def __init__(
138139
self,
139140
*,
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,
141+
skipkeys: bool = False,
142+
ensure_ascii: bool = True,
143+
check_circular: bool = True,
144+
allow_nan: bool = True,
145+
sort_keys: bool = False,
146+
indent: int | None = None,
147+
separators: tuple[str, str] | None = None,
148+
default: Callable[[object], object] | None = None,
148149
) -> None:
149150
if indent is None:
150151
indent = config.get("json_indent")

0 commit comments

Comments
 (0)