From 5d7b766a56865b2973f8e89904eeeb299430e08d Mon Sep 17 00:00:00 2001 From: Emmanuel Di Pretoro Date: Fri, 10 Jul 2026 14:39:47 +0200 Subject: [PATCH] First iteration to add persistence to the Minter dataclass --- noid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/noid.py b/noid.py index 33fb809..ea8809c 100644 --- a/noid.py +++ b/noid.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +from dataclass_persistence import Persistent from dataclasses import dataclass, field from typing import ClassVar @@ -11,7 +12,7 @@ class Counter(): @dataclass -class Minter(): +class Minter(Persistent): legalstring: ClassVar[str] = "0123456789bcdfghjkmnpqrstvwxz" alphacount: ClassVar[int] = len(legalstring) digitcount: ClassVar[int] = 10