Improved type-hinting for loggers and removed legacy

This commit is contained in:
kku
2024-12-27 22:23:41 +01:00
parent 7a64e334d2
commit ce57755eee
6 changed files with 12 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
import logging
from logging import Logger
from typing import Any, Dict
from bson import ObjectId
@@ -8,7 +9,7 @@ from libbot.utils import config_get
from errors import UserNotFoundError
from modules.database import col_warnings, sync_col_users, sync_col_warnings, col_users
logger = logging.getLogger(__name__)
logger: Logger = logging.getLogger(__name__)
class HoloUser:
@@ -123,8 +124,3 @@ class HoloUser:
return True
return False
# def purge(self) -> None:
# """Completely remove data from database. Will not remove transactions logs and warnings."""
# col_users.delete_one(filter={"_id": self.db_id})
# self.unauthorize()