Skip to content

Commit

Permalink
(fix): attr check
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Nov 7, 2024
1 parent 49e08e4 commit a6906a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anndata/_core/sparse_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def append(self, sparse_matrix: ss.csr_matrix | ss.csc_matrix | SpArray) -> None
)
# Clear cached property
for attr in ["_indptr", "_indices", "_data"]:
if hasattr(self, "_indptr"):
if hasattr(self, attr):
delattr(self, attr)

# indices
Expand Down

0 comments on commit a6906a9

Please sign in to comment.