Skip to content

Commit

Permalink
Merge pull request #205 from lilab-bcb/typing
Browse files Browse the repository at this point in the history
inline index types
  • Loading branch information
joshua-gould committed Sep 29, 2023
2 parents 6347bc1 + 4a7adf6 commit 2c00357
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cirrocumulus/sparse_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import numpy as np
import scipy.sparse as ss
from anndata.compat import Index1D
from scipy.sparse import _sparsetools


Expand All @@ -23,7 +22,11 @@
except ImportError:
_cs_matrix = ss.spmatrix

from anndata._core.index import Index, _subset
from anndata._core.index import _subset


Index1D = Union[slice, int, str, np.int64, np.ndarray]
Index = Union[Index1D, Tuple[Index1D, Index1D], ss.spmatrix]


def unpack_index(index: Index) -> tuple[Index1D, Index1D]:
Expand Down

0 comments on commit 2c00357

Please sign in to comment.