Skip to content

Commit 54fe53b

Browse files
fix: resolve ruff lint errors in modified files
- cli/main.py: replace `Any` type hint with `object` in _fmt_prob (no import needed) - tests/test_lr_predictor.py: sort import block (ruff I001 auto-fix) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6348df8 commit 54fe53b

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def cmd_interview(args: argparse.Namespace) -> None:
632632
console.print()
633633

634634

635-
def _fmt_prob(e: Any) -> str:
635+
def _fmt_prob(e: object) -> str:
636636
"""Format admission_prob + CI for display, using pre-computed SchoolListEntry fields."""
637637
prob = getattr(e, "admission_prob", None)
638638
if prob is None:

tests/test_lr_predictor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,22 @@
22

33
from __future__ import annotations
44

5-
import math
65
from unittest.mock import patch
76

87
import pytest
98

109
from core.lr_predictor import (
1110
AdmitPrediction,
11+
_ci_half_width,
1212
_logit,
1313
_sigmoid,
14-
_ci_half_width,
15-
_compute_logit,
14+
get_model_stats,
15+
has_model,
1616
predict_prob,
1717
predict_prob_full,
18-
has_model,
19-
get_model_stats,
2018
)
2119
from core.models import TestScores, UserProfile
2220

23-
2421
# ---------------------------------------------------------------------------
2522
# Minimal fake model fixture (does not require admission_models.json)
2623
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)