diff options
| author | 2020-12-12 03:07:25 +0100 | |
|---|---|---|
| committer | 2020-12-12 03:07:25 +0100 | |
| commit | 35536a73389e9d555e42f9388552b7c43f5c3a8b (patch) | |
| tree | df98e8043543fdffdb767128b7a5d97b998a1b27 /day2/__init__.py | |
| parent | 4985ee94450df0bbcf982b7652c946a47707e60c (diff) | |
| download | 2021-35536a73389e9d555e42f9388552b7c43f5c3a8b.tar.gz 2021-35536a73389e9d555e42f9388552b7c43f5c3a8b.tar.bz2 2021-35536a73389e9d555e42f9388552b7c43f5c3a8b.zip | |
Added day 3
Diffstat (limited to 'day2/__init__.py')
| -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( |
