Skip to content

Commit

Permalink
(fix): use MutableMapping instead of dict due to broken docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Jul 11, 2024
1 parent 24dd18b commit 79d3fdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/anndata/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

from collections.abc import MutableMapping
from typing import TYPE_CHECKING, Protocol, TypeVar, Union

import numpy as np
Expand Down Expand Up @@ -58,7 +59,8 @@
str,
]
RWAble: TypeAlias = Union[InMemoryArrayOrScalarType, "RWAbleDict", "RWAbleList"] # noqa: TCH010
RWAbleDict: TypeAlias = dict[str, RWAble]
# dict has a broken docstring: https://readthedocs.com/projects/icb-anndata/builds/2342910/
RWAbleDict: TypeAlias = MutableMapping[str, RWAble]
RWAbleList: TypeAlias = list[RWAble]
InMemoryElem: TypeAlias = Union[
RWAble,
Expand Down

0 comments on commit 79d3fdc

Please sign in to comment.