Skip to content

Commit 09aa123

Browse files
committed
lint
1 parent d6cccb6 commit 09aa123

File tree

20 files changed

+21
-32
lines changed

20 files changed

+21
-32
lines changed

src/zarr/abc/codec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
if TYPE_CHECKING:
1212
from collections.abc import Awaitable, Callable, Iterable
13+
from typing import Self
1314

1415
import numpy as np
15-
from typing_extensions import Self
1616

1717
from zarr.abc.store import ByteGetter, ByteSetter
1818
from zarr.core.array_spec import ArraySpec

src/zarr/abc/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import TYPE_CHECKING
55

66
if TYPE_CHECKING:
7-
from typing_extensions import Self
7+
from typing import Self
88

99
from zarr.core.common import JSON
1010

src/zarr/abc/store.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from abc import ABC, abstractmethod
22
from asyncio import gather
33
from collections.abc import AsyncGenerator, Iterable
4-
from typing import Any, NamedTuple, Protocol, runtime_checkable
5-
6-
from typing_extensions import Self
4+
from typing import Any, NamedTuple, Protocol, Self, runtime_checkable
75

86
from zarr.core.buffer import Buffer, BufferPrototype
97
from zarr.core.common import AccessModeLiteral, BytesLike

src/zarr/codecs/blosc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from zarr.registry import register_codec
1515

1616
if TYPE_CHECKING:
17-
from typing_extensions import Self
17+
from typing import Self
1818

1919
from zarr.core.array_spec import ArraySpec
2020
from zarr.core.buffer import Buffer

src/zarr/codecs/bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from zarr.registry import register_codec
1414

1515
if TYPE_CHECKING:
16-
from typing_extensions import Self
16+
from typing import Self
1717

1818
from zarr.core.array_spec import ArraySpec
1919

src/zarr/codecs/crc32c_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from zarr.registry import register_codec
1313

1414
if TYPE_CHECKING:
15-
from typing_extensions import Self
15+
from typing import Self
1616

1717
from zarr.core.array_spec import ArraySpec
1818
from zarr.core.buffer import Buffer

src/zarr/codecs/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from zarr.registry import register_codec
1212

1313
if TYPE_CHECKING:
14-
from typing_extensions import Self
14+
from typing import Self
1515

1616
from zarr.core.array_spec import ArraySpec
1717
from zarr.core.buffer import Buffer

src/zarr/codecs/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
if TYPE_CHECKING:
2323
from collections.abc import Iterable, Iterator
24+
from typing import Self
2425

2526
import numpy as np
26-
from typing_extensions import Self
2727

2828
from zarr.abc.store import ByteGetter, ByteSetter
2929
from zarr.core.array_spec import ArraySpec

src/zarr/codecs/sharding.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949

5050
if TYPE_CHECKING:
5151
from collections.abc import Awaitable, Callable, Iterator
52-
53-
from typing_extensions import Self
52+
from typing import Self
5453

5554
from zarr.core.common import JSON
5655

src/zarr/codecs/transpose.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
from zarr.registry import register_codec
1313

1414
if TYPE_CHECKING:
15-
from typing import Any
16-
17-
from typing_extensions import Self
15+
from typing import Any, Self
1816

1917
from zarr.core.buffer import NDBuffer
2018
from zarr.core.chunk_grids import ChunkGrid

0 commit comments

Comments
 (0)