Skip to content

Commit fbc18bb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03e2008 commit fbc18bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/moscot/_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
try:
99
from numpy.typing import DTypeLike, NDArray
1010

11-
ArrayLike = NDArray[np.float_]
11+
ArrayLike = NDArray[np.float64]
1212
except (ImportError, TypeError):
1313
ArrayLike = np.ndarray # type: ignore[misc]
1414
DTypeLike = np.dtype # type: ignore[misc]

src/moscot/problems/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def handle_joint_attr(
3737

3838
# if this is True we have custom cost matrix or moscot cost - in this case we have a custom cost matrix
3939
if joint_attr.get("tag", None) == "cost_matrix" and (
40-
len(joint_attr) == 2 or kwargs.get("attr", None) == "obsp"
40+
len(joint_attr) == 2 or kwargs.get("attr") == "obsp"
4141
):
4242
joint_attr.setdefault("cost", "custom")
4343
joint_attr.setdefault("attr", "obsp")

src/moscot/problems/cross_modality/_mixins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _get_features(
8080
attr: Dict[str, Any],
8181
) -> ArrayLike:
8282
data = getattr(adata, attr["attr"])
83-
key = attr.get("key", None)
83+
key = attr.get("key")
8484
return data if key is None else data[key]
8585

8686
if self._src_attr is None:

0 commit comments

Comments
 (0)