pydata / sparse

Sparse multi-dimensional arrays for the PyData ecosystem

Home Page:https://sparse.pydata.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correct type hint for sparse COO matrix?

arbenede opened this issue · comments

Is sparse.COO the correct type hint for a sparse COO array function argument, like in

def f(A: sparse.COO):
    ...

?

We don't currently have complete type hinting support in PyData/sparse (contributions welcome), but it's pure-Python so that should work well enough.