Skip to content

Commit

Permalink
Merge pull request #111 from kastaid/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
illvart authored Nov 16, 2024
2 parents ff1b341 + 8e77807 commit b55b9eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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

0 comments on commit b55b9eb

Please sign in to comment.