Merge pull request #807 from PR0M3TH3AN/codex/add-docstring-to-utils.py

Clarify placeholder utilities and clean imports
This commit is contained in:
thePR0M3TH3AN
2025-08-08 15:56:51 -04:00
committed by GitHub
13 changed files with 8 additions and 18 deletions

View File

@@ -18,7 +18,6 @@ import hashlib
import hmac
import logging
import os
import traceback
from colorama import Fore
from bip_utils import Bip32Slip10Secp256k1, Bip39MnemonicGenerator, Bip39Languages

View File

@@ -17,7 +17,6 @@ from tomli import TOMLDecodeError
from colorama import init as colorama_init
from termcolor import colored
from utils.color_scheme import color_text
import traceback
import importlib
from seedpass.core.manager import PasswordManager

View File

@@ -2,7 +2,6 @@
import time
import logging
import traceback
try:
from monstr.event.event import Event

View File

@@ -2,7 +2,6 @@
import hashlib
import logging
import traceback
from bech32 import bech32_encode, convertbits
from local_bip85.bip85 import BIP85

View File

@@ -1,8 +1,9 @@
# nostr/utils.py
"""Placeholder utilities for Nostr.
import logging
This module is intentionally left minimal and will be expanded in future
releases as the Nostr integration grows.
"""
# Example utility function (if any specific to nostr package)
def some_helper_function():
pass # Implement as needed
# The module currently provides no functionality.
# `pass` denotes the intentional absence of implementation.
pass

View File

@@ -15,7 +15,6 @@ import logging
import os
import shutil
import time
import traceback
from pathlib import Path
from termcolor import colored

View File

@@ -86,7 +86,6 @@ from constants import (
initialize_app,
)
import traceback
import asyncio
import gzip
import bcrypt

View File

@@ -23,7 +23,6 @@ import logging
import hashlib
import string
import hmac
import traceback
import base64
from typing import Optional
from dataclasses import dataclass

View File

@@ -15,7 +15,6 @@ import logging
import sys
import os
import json
import traceback
from typing import Optional, Any
from termcolor import colored

View File

@@ -32,5 +32,5 @@ def color_text(text: str, category: str = "default") -> str:
color = _COLOR_MAP.get(category, "white")
if color == "orange":
return _apply_orange(text)
attrs = ["bold"] if category in {"info", "warning", "error"} else None
attrs = ["bold"] if category in {"info", "warning", "error"} else []
return colored(text, color, attrs=attrs)

View File

@@ -10,7 +10,6 @@ facilitating organized and secure storage.
import hashlib
import logging
import traceback
from typing import Optional
# Instantiate the logger

View File

@@ -3,7 +3,6 @@
import os
import json
import logging
import traceback
from pathlib import Path
from typing import Callable, List, Optional

View File

@@ -19,7 +19,6 @@ import hashlib
import base64
import unicodedata
import logging
import traceback
import hmac
import time
from enum import Enum