Skip to content

Commit 65da0ec

Browse files
committed
chore: aoc 2025 day 10 linting fixes
1 parent fc70878 commit 65da0ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_2025/solutions/day10.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import re
1717
from typing import ClassVar
1818

19-
from numpy import transpose
19+
import numpy as np
20+
import numpy.typing as npt
2021
from scipy.optimize import linprog
2122

2223
from aoc.models.base import SolutionBase
@@ -199,8 +200,8 @@ def min_presses_for_machine(
199200
c = [1] * N
200201

201202
# Build equality constraints: sum(button_vectors * presses) = target
202-
A_eq = [self.button_to_vector(btn, num_jolt) for btn in buttons] # noqa: N806
203-
A_eq = transpose(A_eq) # noqa: N806
203+
A_ls = [self.button_to_vector(btn, num_jolt) for btn in buttons] # noqa: N806
204+
A_eq: npt.NDArray[np.int_] = np.transpose(A_ls) # noqa: N806
204205
b_eq = target
205206
integrality = [1] * N
206207

0 commit comments

Comments
 (0)