From cbcb7208576277351fd57e8746b57698e1b2899c Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Tue, 29 Oct 2024 13:30:18 -0700 Subject: [PATCH] Fix typing --- kerchunk/codecs.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kerchunk/codecs.py b/kerchunk/codecs.py index 4804423e..46b19072 100644 --- a/kerchunk/codecs.py +++ b/kerchunk/codecs.py @@ -1,23 +1,19 @@ import ast from dataclasses import dataclass import io -from typing import TYPE_CHECKING +from typing import Self, TYPE_CHECKING import numcodecs from numcodecs.abc import Codec import numpy as np import threading import zlib +from zarr.core.array_spec import ArraySpec from zarr.abc.codec import ArrayBytesCodec from zarr.core.buffer import Buffer, NDArrayLike, NDBuffer from zarr.core.common import JSON, parse_enum, parse_named_configuration from zarr.registry import register_codec -if TYPE_CHECKING: - from typing import Self - - from zarr.core.array_spec import ArraySpec - class FillStringsCodec(Codec): """Sets fixed-length string fields to empty