Skip to content

Commit 03ae47b

Browse files
committed
Appease pyright
1 parent 5d7841c commit 03ae47b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_deploy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ def test_to_prediction_df() -> None:
135135

136136
# Check if no loss / target is given for targets with missing ground truths
137137
no_ground_truth = preds_df[preds_df["patient"].isin(["pat6"])]
138-
assert no_ground_truth["target"].isna().all()
139-
assert no_ground_truth["loss"].isna().all()
138+
assert no_ground_truth["target"].isna().all() # pyright: ignore[reportGeneralTypeIssues,reportAttributeAccessIssue]
139+
assert no_ground_truth["loss"].isna().all() # pyright: ignore[reportGeneralTypeIssues,reportAttributeAccessIssue]
140140

141141
# Check if loss / target is given for targets with ground truths
142142
with_ground_truth = preds_df[preds_df["patient"].isin(["pat5", "pat7"])]
143-
assert (~with_ground_truth["target"].isna()).all()
144-
assert (~with_ground_truth["loss"].isna()).all()
143+
assert (~with_ground_truth["target"].isna()).all() # pyright: ignore[reportGeneralTypeIssues,reportAttributeAccessIssue]
144+
assert (~with_ground_truth["loss"].isna()).all() # pyright: ignore[reportGeneralTypeIssues,reportAttributeAccessIssue]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)