Optimize import statements and remove unused imports across multiple files

This commit focuses on cleaning up import statements by:
- Removing unused imports
- Organizing import order
- Removing redundant imports
- Ensuring consistent import style across different modules
This commit is contained in:
Zakhar Izmaylov
2025-01-29 07:15:20 +03:00
parent 5f2b40b2d2
commit 8ce7ee0ce0
21 changed files with 40 additions and 1483 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
from dataclasses import dataclass
from typing import Optional, Dict, Any, List
from typing import Any
import py3xui
from config import LIMIT_IP, SUPERNODE
@@ -22,7 +23,7 @@ class ClientConfig:
sub_id: str
async def add_client(xui: py3xui.API, config: ClientConfig) -> Dict[str, Any]:
async def add_client(xui: py3xui.API, config: ClientConfig) -> dict[str, Any]:
"""
Добавляет клиента на сервер через 3x-ui.
@@ -66,7 +67,7 @@ async def add_client(xui: py3xui.API, config: ClientConfig) -> Dict[str, Any]:
async def extend_client_key(
xui: py3xui.API, inbound_id: int, email: str, new_expiry_time: int, client_id: str, total_gb: int, sub_id: str
) -> Optional[bool]:
) -> bool | None:
"""
Обновляет срок действия ключа клиента.