From 0d2a5240477ce4896d1332517bc72132284d2da1 Mon Sep 17 00:00:00 2001 From: Donovan Date: Sun, 9 Mar 2025 09:24:50 -0500 Subject: [PATCH] remove pydantic from user.py --- src/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/user.py b/src/user.py index 9e7a864..6ce67c7 100644 --- a/src/user.py +++ b/src/user.py @@ -1,5 +1,4 @@ -from pydantic import BaseModel - +from dataclasses import dataclass, field from src.models import EncipheredNKode from src.customer_attributes import CustomerAttributes from src.user_cipher_keys import UserCipherKeys @@ -7,12 +6,13 @@ from src.user_interface import UserInterface from src.utils import xor_lists -class User(BaseModel): +@dataclass +class User: username: str enciphered_passcode: EncipheredNKode user_keys: UserCipherKeys user_interface: UserInterface - renew: bool = False + renew: bool = field(default=False) def renew_keys(self, sets_xor: list[int], attrs_xor: list[int]): self.renew = True