Skip to content

Commit a082222

Browse files
d-v-bmaxrjones
andauthored
Update src/zarr/abc/numcodec.py
Co-authored-by: Max Jones <[email protected]>
1 parent a857fc2 commit a082222

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/zarr/abc/numcodec.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ class Numcodec(Protocol):
1313
codec_id: str
1414

1515
def encode(self, buf: Any) -> Any: ...
16+
"""Encode data in `buf`.
17+
18+
Parameters
19+
----------
20+
buf
21+
Data to be encoded. May be any object supporting the new-style
22+
buffer protocol.
23+
24+
Returns
25+
-------
26+
enc
27+
Encoded data. May be any object supporting the new-style buffer
28+
protocol.
29+
"""
1630

1731
def decode(self, buf: Any, out: Any | None = None) -> Any: ...
1832
"""

0 commit comments

Comments
 (0)