First iteration to add persistence to the Minter dataclass
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user