diff options
Diffstat (limited to '2021')
-rw-r--r-- | 2021/16/puzzles.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/2021/16/puzzles.py b/2021/16/puzzles.py index 7d47814..946df31 100644 --- a/2021/16/puzzles.py +++ b/2021/16/puzzles.py @@ -7,14 +7,10 @@ data: str class Packet(NamedTuple): - pass - - -class Packet(NamedTuple): version: int type: int value: int - subpackets: list[Packet] + subpackets: list['Packet'] def calculate(self) -> int: f = lambda p: p.calculate() |