We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6623e0c commit 312bf3aCopy full SHA for 312bf3a
1 file changed
src/zarr/abc/serializable.py
@@ -1,10 +1,7 @@
1
-from typing import Protocol, Self, TypeVar
+from typing import Protocol, Self
2
3
-T_co = TypeVar("T_co", covariant=True)
4
-T_contra = TypeVar("T_contra", contravariant=True)
5
6
-
7
-class JSONSerializable(Protocol[T_contra, T_co]):
+class JSONSerializable[T_contra, T_co](Protocol):
8
@classmethod
9
def from_json(cls, obj: T_contra) -> Self:
10
"""
0 commit comments