diff options
Diffstat (limited to 'day2')
| -rw-r--r-- | day2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/day2/__init__.py b/day2/__init__.py index 988c32e..1d65d13 100644 --- a/day2/__init__.py +++ b/day2/__init__.py | |||
| @@ -2,7 +2,7 @@ import re | |||
| 2 | from dataclasses import dataclass | 2 | from dataclasses import dataclass |
| 3 | from typing import Generator | 3 | from typing import Generator |
| 4 | 4 | ||
| 5 | from aoc import AssignmentBase | 5 | from aoc import BaseAssignment |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | matcher = re.compile( | 8 | matcher = re.compile( |
| @@ -18,7 +18,7 @@ class Item: | |||
| 18 | password: str | 18 | password: str |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | class Assignment(AssignmentBase): | 21 | class Assignment(BaseAssignment): |
| 22 | def parse_item(self, item: str) -> Item: | 22 | def parse_item(self, item: str) -> Item: |
| 23 | match = matcher.match(item).groupdict() | 23 | match = matcher.match(item).groupdict() |
| 24 | return Item( | 24 | return Item( |
