Skip to content

Commit f976fb0

Browse files
apply suggestions (#1103)
1 parent 9501a9e commit f976fb0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,4 @@ data
145145
.pixi
146146
pixi.lock
147147

148-
# version file
149148
_version.py

src/squidpy/_compat.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
"SparseCSRView",
2020
]
2121

22-
# See https://github.com/scverse/squidpy/issues/1061 for more details
23-
# scanpy around version 0.11.x- 0.12.x changed the function name from set_default_colors_for_categorical_obs to _set_default_colors_for_categorical_obs
24-
# and then changed it back
25-
# so to not track with versioning we use the underscore version first (current), fall back to non-underscore for older/future versions
22+
# See https://github.com/scverse/squidpy/issues/1061 for more details.
23+
# Scanpy 0.11.x-0.12.x renamed set_default_colors_for_categorical_obs to _set_default_colors_for_categorical_obs
24+
# and then changed it back. Try underscore version first, fall back to non-underscore.
2625
try:
2726
from scanpy.plotting._utils import _set_default_colors_for_categorical_obs as set_default_colors_for_categorical_obs
2827
except ImportError:

0 commit comments

Comments
 (0)