diff --git a/getter/core/base_client.py b/getter/core/base_client.py index 3650b22..e2c20ec 100644 --- a/getter/core/base_client.py +++ b/getter/core/base_client.py @@ -9,6 +9,7 @@ import os import sys from asyncio import sleep, Future +from collections import UserList from collections.abc import Coroutine from inspect import getmembers from platform import version, machine @@ -48,7 +49,7 @@ from .utils import time_formatter -class ReverseList(list): +class ReverseList(UserList): def __iter__(self): return reversed(self) diff --git a/getter/core/helper.py b/getter/core/helper.py index 417cc50..9359ab3 100644 --- a/getter/core/helper.py +++ b/getter/core/helper.py @@ -5,6 +5,7 @@ # Please read the GNU Affero General Public License in # < https://github.com/kastaid/getter/blob/main/LICENSE/ >. +from collections import UserDict from html import escape from typing import Any from cachetools import cached, LRUCache @@ -15,7 +16,7 @@ from .utils import get_full_class_name -class PluginsHelp(dict): +class PluginsHelp(UserDict): def append(self, obj: dict) -> None: plug = next(iter(obj.keys())) cmds = {} diff --git a/requirements-dev.txt b/requirements-dev.txt index 2bcf8d3..9e6a84a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -ruff==0.7.0 +ruff==0.7.4 black==24.10.0 isort==5.13.2 diff --git a/requirements.txt b/requirements.txt index eb5bca2..695dc07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,4 +26,4 @@ lottie==0.7.1 Pillow==11.0.0 CairoSVG==2.7.1 uvloop==0.21.0 -orjson==3.10.9 +orjson==3.10.11