Skip to content

Commit ea56a4d

Browse files
committed
style: fix undefined name in lda and sort imports in jump_search
1 parent f858e21 commit ea56a4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

machine_learning/linear_discriminant_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def accuracy(actual_y: list, predicted_y: list) -> float:
247247
# of all data and multiplied by 100
248248
return (correct / len(actual_y)) * 100
249249

250-
def valid_input(
250+
def valid_input[num](
251251
input_type: Callable[[object], num], # Usually float or int
252252
input_msg: str,
253253
err_msg: str,

searches/jump_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55

66
from __future__ import annotations
7+
78
import math
89
from collections.abc import Sequence
910
from typing import Any, Protocol

0 commit comments

Comments
 (0)