Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #111

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion getter/core/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -48,7 +49,7 @@
from .utils import time_formatter


class ReverseList(list):
class ReverseList(UserList):
def __iter__(self):
return reversed(self)

Expand Down
3 changes: 2 additions & 1 deletion getter/core/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruff==0.7.0
ruff==0.7.4
black==24.10.0
isort==5.13.2
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading