@@ -95,6 +95,14 @@ def setup(app: Sphinx) -> None:
9595 app .add_generic_role ("small" , partial (nodes .inline , classes = ["small" ]))
9696 app .add_generic_role ("smaller" , partial (nodes .inline , classes = ["smaller" ]))
9797
98+ # https://github.com/mkdocstrings/python/issues/339
99+ from sphinx .domains import ObjType
100+ from sphinx .domains .python import PythonDomain
101+
102+ PythonDomain .object_types .setdefault (
103+ "typealias" , ObjType ("type alias" , "type" , "obj" )
104+ )
105+
98106 # TODO: move to scanpydoc
99107 if TYPE_CHECKING :
100108 from docutils .nodes import TextElement , reference
@@ -153,12 +161,8 @@ def res(
153161 },
154162 # Can’t use `set_module` for `type`s. When moving out of .experimental, define in actual location.
155163 "anndata._types.StorageType" : "anndata.experimental.StorageType" ,
156- # https://github.com/theislab/scanpydoc/issues/254
157- "anndata.typing.Index1D" : "anndata.typing.Index1D" ,
158- "anndata.typing.Index" : "anndata.typing.Index" ,
159- "anndata.typing.RWAble" : "anndata.typing.RWAble" ,
160- "anndata.typing.AxisStorable" : "anndata.typing.AxisStorable" ,
161- "anndata.typing.InMemoryArray" : "anndata.typing.InMemoryArray" ,
164+ #### zarr
165+ "zarr.core.group.StoreLike" : "zarr.storage.StoreLike" ,
162166 #### h5py
163167 "h5py._hl.group.Group" : "h5py.Group" ,
164168 "h5py._hl.files.File" : "h5py.File" ,
0 commit comments