Skip to content

Commit d86f80c

Browse files
committed
Update name of protocol
1 parent b665e03 commit d86f80c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parcels/_core/utils/sgrid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ class Padding(enum.Enum):
3333
BOTH = "both"
3434

3535

36-
class SGridMetadataProtocol(Protocol):
36+
class AttrsSerializable(Protocol):
3737
def to_attrs(self) -> dict[str, str | int]: ...
3838
def from_attrs(cls, d: dict[str, Hashable]) -> Self: ...
3939

4040

41-
class Grid2DMetadata(SGridMetadataProtocol):
41+
class Grid2DMetadata(AttrsSerializable):
4242
def __init__(
4343
self,
4444
cf_role: Literal["grid_topology"],
@@ -138,7 +138,7 @@ def rename_dims(self, dims_dict: dict[str, str]) -> Self:
138138
return _metadata_rename_dims(self, dims_dict)
139139

140140

141-
class Grid3DMetadata(SGridMetadataProtocol):
141+
class Grid3DMetadata(AttrsSerializable):
142142
def __init__(
143143
self,
144144
cf_role: Literal["grid_topology"],

0 commit comments

Comments
 (0)