Skip to content

Commit dcb77fb

Browse files
committed
Fix: define SparseArray even is sparse not available to avoid import error
1 parent 44b9bd3 commit dcb77fb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spm/__wrapper__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,10 @@ def from_any(cls, other, **kwargs) -> "SparseArray":
11661166
return other
11671167

11681168

1169+
else:
1170+
WrappedSparseArray = SparseArray = None
1171+
1172+
11691173
# ----------------------------------------------------------------------
11701174
# Array
11711175
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)