single-cell-data / SOMA

A flexible and extensible API for annotated 2D matrix data stored in multiple underlying formats.
MIT License
69 stars 9 forks source link

Declare `soma_type` as a class var rather than a property #102

Closed thetorpedodog closed 1 year ago

thetorpedodog commented 1 year ago

When using @property declarations, the type system would not realize that in the implementation, soma_type could always be accessed as a class variable. This change just makes soma_type a class var and shuffles around some annotations to make that easier. The is_sparse field on NDArray is similarly updated.


This idea came to me in the shower.