Skip to content

Commit 312bf3a

Browse files
committed
chore: embrace the 3.12
1 parent 6623e0c commit 312bf3a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/zarr/abc/serializable.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
from typing import Protocol, Self, TypeVar
1+
from typing import Protocol, Self
22

3-
T_co = TypeVar("T_co", covariant=True)
4-
T_contra = TypeVar("T_contra", contravariant=True)
53

6-
7-
class JSONSerializable(Protocol[T_contra, T_co]):
4+
class JSONSerializable[T_contra, T_co](Protocol):
85
@classmethod
96
def from_json(cls, obj: T_contra) -> Self:
107
"""

0 commit comments

Comments
 (0)