From 89929901e88749c8428afd0cf5684caa49a246b7 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 3 Dec 2025 17:45:22 +0100 Subject: Day 3 --- aoc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aoc/__init__.py') diff --git a/aoc/__init__.py b/aoc/__init__.py index 0257b69..f490bf8 100644 --- a/aoc/__init__.py +++ b/aoc/__init__.py @@ -17,7 +17,8 @@ class BaseAssignment(Generic[T, I], ABC): def __str__(self): return f"{self.__module__}.{self.__class__.__name__}" - def parse_item(self, item: str) -> Iterator[I]: + @classmethod + def parse_item(cls, item: str) -> Iterator[I]: yield item @property -- cgit v1.2.3