Skip to content

Commit

Permalink
Merge pull request #29 from YosefLab/typing-patch
Browse files Browse the repository at this point in the history
typing import patch
  • Loading branch information
colganwi authored Sep 2, 2024
2 parents 27bf64a + 87655bc commit a2af158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/treedata/_core/treedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import numpy as np
import pandas as pd
import zarr
from anndata._core.index import Index, Index1D, _subset
from anndata._core.index import _subset
from anndata._io import write_h5ad, write_zarr
from scipy import sparse

Expand All @@ -29,6 +29,9 @@
if TYPE_CHECKING:
from os import PathLike

Index1D = slice | int | str | np.int64 | np.ndarray
Index = Index1D | tuple[Index1D, Index1D] | sparse.spmatrix | sparse.sparray


class TreeData(ad.AnnData):
"""AnnData with trees.
Expand Down

0 comments on commit a2af158

Please sign in to comment.