Skip to content

Commit

Permalink
Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 10, 2024
1 parent 7a442e1 commit 38d24fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/zarr/core/metadata/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from zarr.core.buffer.core import default_buffer_prototype

if TYPE_CHECKING:
from typing import Self
from typing import Callable, Self

from zarr.core.buffer import Buffer, BufferPrototype
from zarr.core.chunk_grids import ChunkGrid
Expand Down Expand Up @@ -137,14 +137,14 @@ class V3JsonEncoder(json.JSONEncoder):
def __init__(
self,
*,
skipkeys=False,
ensure_ascii=True,
check_circular=True,
allow_nan=True,
sort_keys=False,
indent=None,
separators=None,
default=None,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
sort_keys: bool = False,
indent: int | None = None,
separators: tuple[str, str] | None = None,
default: Callable[[object], object] | None = None,
) -> None:
if indent is None:
indent = config.get("json_indent")
Expand Down

0 comments on commit 38d24fd

Please sign in to comment.