summaryrefslogtreecommitdiffstats
path: root/aoc/__init__.py
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2025-12-03 17:45:22 +0100
committerGravatar Tom van der Lee <tom@vanderlee.io>2025-12-03 17:45:22 +0100
commit89929901e88749c8428afd0cf5684caa49a246b7 (patch)
tree655ecbc45c6d1691e9d6f4c1411dbfd18cb5312c /aoc/__init__.py
parent31a8d2b6b7da1fcf4992a1fa6190eb3c7dbc4000 (diff)
download2025-89929901e88749c8428afd0cf5684caa49a246b7.tar.gz
2025-89929901e88749c8428afd0cf5684caa49a246b7.tar.bz2
2025-89929901e88749c8428afd0cf5684caa49a246b7.zip
Day 3
Diffstat (limited to 'aoc/__init__.py')
-rw-r--r--aoc/__init__.py3
1 files changed, 2 insertions, 1 deletions
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):
17 def __str__(self): 17 def __str__(self):
18 return f"{self.__module__}.{self.__class__.__name__}" 18 return f"{self.__module__}.{self.__class__.__name__}"
19 19
20 def parse_item(self, item: str) -> Iterator[I]: 20 @classmethod
21 def parse_item(cls, item: str) -> Iterator[I]:
21 yield item 22 yield item
22 23
23 @property 24 @property