Skip to content

Commit f07f1e2

Browse files
author
Mallory Brickerd
committed
fix: formatting and linting errors
1 parent 46016fd commit f07f1e2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

_2025/solutions/day02.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
allowing for consistent handling of input parsing and solution execution.
99
"""
1010

11+
from collections.abc import Callable
1112
from functools import partial
12-
from typing import Callable
1313

1414
from aoc.models.base import SolutionBase
1515

@@ -25,7 +25,7 @@ class Solution(SolutionBase):
2525
for parsing input and solving the puzzle requirements.
2626
"""
2727

28-
def has_repeated_sequence(self, n: int, num_repeats: int = None) -> bool:
28+
def has_repeated_sequence(self, n: int, num_repeats: int | None = None) -> bool:
2929
s = str(n)
3030
length = len(s)
3131

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124
1+
11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124

_2025/tests/test_02.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
solution, ensuring that the implementation meets the expected outputs for
99
given test inputs.
1010
"""
11+
1112
from aoc.models.tester import TestSolutionUtility
1213

14+
1315
def test_day02_part1() -> None:
1416
"""Test the solution for Part 1 of the daily puzzle.
1517
@@ -24,6 +26,7 @@ def test_day02_part1() -> None:
2426
expected=1227775554,
2527
)
2628

29+
2730
def test_day02_part2() -> None:
2831
"""Test the solution for Part 2 of the daily puzzle.
2932

0 commit comments

Comments
 (0)