From fbe44f0dc30c12833c896ef37f6c39a891fb7bd7 Mon Sep 17 00:00:00 2001 From: ilan-gold Date: Mon, 8 Jul 2024 12:29:08 +0200 Subject: [PATCH] (fix): add string descriptions --- src/anndata/_io/specs/registry.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/anndata/_io/specs/registry.py b/src/anndata/_io/specs/registry.py index f77471519..9366ce305 100644 --- a/src/anndata/_io/specs/registry.py +++ b/src/anndata/_io/specs/registry.py @@ -267,6 +267,13 @@ def __call__( iospec: IOSpec, ) -> InMemoryType: ... + """Callback used in {func}`anndata.experimental.read_dispatched` to customize reading an element from a store. + + Returns + ------- + The element read from the store. + """ + class Reader: def __init__( @@ -307,7 +314,9 @@ def __call__( *, iospec: IOSpec, dataset_kwargs: MappingProxyType, - ) -> InMemoryType: ... + ) -> None: ... + + """Callback used in {func}`anndata.experimental.write_dispatched` to customize writing an element to a store.""" class Writer: