satori-python-client 0.13.3__tar.gz → 0.14.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/PKG-INFO +1 -1
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/pyproject.toml +3 -3
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/__init__.py +2 -1
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/account.pyi +2 -1
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/websocket.py +2 -3
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/protocol.py +2 -1
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/.mina/client.toml +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/LICENSE +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/README.md +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/account.py +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/__init__.py +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/base.py +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/util.py +0 -0
- {satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/webhook.py +0 -0
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Programming Language :: Python :: 3.12",
|
|
25
25
|
"Operating System :: OS Independent",
|
|
26
26
|
]
|
|
27
|
-
version = "0.
|
|
27
|
+
version = "0.14.0"
|
|
28
28
|
|
|
29
29
|
[project.license]
|
|
30
30
|
text = "MIT"
|
|
@@ -82,7 +82,7 @@ extra_standard_library = [
|
|
|
82
82
|
|
|
83
83
|
[tool.ruff]
|
|
84
84
|
line-length = 110
|
|
85
|
-
target-version = "
|
|
85
|
+
target-version = "py39"
|
|
86
86
|
exclude = [
|
|
87
87
|
"exam.py",
|
|
88
88
|
]
|
|
@@ -107,7 +107,7 @@ ignore = [
|
|
|
107
107
|
|
|
108
108
|
[tool.pyright]
|
|
109
109
|
pythonPlatform = "All"
|
|
110
|
-
pythonVersion = "3.
|
|
110
|
+
pythonVersion = "3.9"
|
|
111
111
|
typeCheckingMode = "basic"
|
|
112
112
|
reportShadowedImports = false
|
|
113
113
|
disableBytesTypePromotions = true
|
|
@@ -4,8 +4,9 @@ import asyncio
|
|
|
4
4
|
import functools
|
|
5
5
|
import signal
|
|
6
6
|
import threading
|
|
7
|
+
from collections.abc import Awaitable, Iterable
|
|
7
8
|
from functools import wraps
|
|
8
|
-
from typing import TYPE_CHECKING, Any,
|
|
9
|
+
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar, overload
|
|
9
10
|
|
|
10
11
|
from creart import it
|
|
11
12
|
from graia.amnesia.builtins.aiohttp import AiohttpClientService
|
{satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/websocket.py
RENAMED
|
@@ -119,9 +119,8 @@ class WsNetwork(BaseNetwork[WebsocketsInfo]):
|
|
|
119
119
|
async def _heartbeat(self):
|
|
120
120
|
"""心跳"""
|
|
121
121
|
while True:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
await self.send({"op": 1})
|
|
122
|
+
with suppress(Exception):
|
|
123
|
+
await self.send({"op": 1})
|
|
125
124
|
await asyncio.sleep(9)
|
|
126
125
|
|
|
127
126
|
async def daemon(self, manager: Launart, session: aiohttp.ClientSession):
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from collections.abc import Iterable
|
|
4
|
+
from typing import TYPE_CHECKING, Any, cast, overload
|
|
4
5
|
|
|
5
6
|
from aiohttp import FormData
|
|
6
7
|
from graia.amnesia.builtins.aiohttp import AiohttpClientService
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/__init__.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/base.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/util.py
RENAMED
|
File without changes
|
{satori_python_client-0.13.3 → satori_python_client-0.14.0}/src/satori/client/network/webhook.py
RENAMED
|
File without changes
|