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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-client
3
- Version: 0.13.3
3
+ Version: 0.14.0
4
4
  Summary: Satori Protocol SDK for python, specify client part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -24,7 +24,7 @@ classifiers = [
24
24
  "Programming Language :: Python :: 3.12",
25
25
  "Operating System :: OS Independent",
26
26
  ]
27
- version = "0.13.3"
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 = "py38"
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.8"
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, Awaitable, Callable, Iterable, Literal, TypeVar, overload
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
@@ -1,5 +1,6 @@
1
1
  import asyncio
2
- from typing import Any, Generic, Iterable, Protocol, TypeVar, overload
2
+ from collections.abc import Iterable
3
+ from typing import Any, Generic, Protocol, TypeVar, overload
3
4
 
4
5
  from yarl import URL
5
6
 
@@ -119,9 +119,8 @@ class WsNetwork(BaseNetwork[WebsocketsInfo]):
119
119
  async def _heartbeat(self):
120
120
  """心跳"""
121
121
  while True:
122
- if self.sequence:
123
- with suppress(Exception):
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 typing import TYPE_CHECKING, Any, Iterable, cast, overload
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