satori-python 1.3.4__py3-none-any.whl → 1.3.5__py3-none-any.whl

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/__init__.py CHANGED
@@ -45,7 +45,7 @@ from .model import Role as Role
45
45
  from .model import Upload as Upload
46
46
  from .model import User as User
47
47
 
48
- __version__ = "1.3.4"
48
+ __version__ = "1.3.5"
49
49
 
50
50
 
51
51
  MessageReceipt = MessageObject
satori/element.py CHANGED
@@ -124,6 +124,8 @@ class Element:
124
124
  return self.dumps()
125
125
 
126
126
  def __repr__(self) -> str:
127
+ if not self._attrs:
128
+ self._attrs = {k: v for k, v in self.__dict__.items() if not k.startswith("_")}
127
129
  args = {**self._attrs}
128
130
  elem = f"{self.__class__.__name__}(" + ", ".join(f"{k}={v!r}" for k, v in args.items())
129
131
  if self._children:
@@ -487,7 +489,7 @@ class Message(Element):
487
489
  self,
488
490
  id: str | None = None,
489
491
  forward: bool | None = None,
490
- content: list[str | Element] | None = None,
492
+ content: Sequence[str | Element] | None = None,
491
493
  ):
492
494
  self.id = id
493
495
  self.forward = forward
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python
3
- Version: 1.3.4
3
+ Version: 1.3.5
4
4
  Summary: Satori Protocol SDK for python
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -1,4 +1,4 @@
1
- satori/__init__.py,sha256=FQefy9qVHoveZvovXuXDhPFX775QW0B8IutY41otMe8,1888
1
+ satori/__init__.py,sha256=A3joKPbJO_1wuVS1FhBVUG6NqypAwgpxRWhAUV56L9w,1888
2
2
  satori/_vendor/fleep.py,sha256=_zKP7iY3mMQr0rC5KbgkbkMorT3KVLeIsWPLIUa0Y34,16347
3
3
  satori/client/__init__.py,sha256=1HLiYmYZoScymOzTuOVZht99eREXMUT09F8PZzvAMPA,14484
4
4
  satori/client/account.py,sha256=HP7BJWkN69SB9ldNIjHxWlXcrmB-IPnTnYqm3lBMvl8,2742
@@ -11,7 +11,7 @@ satori/client/network/webhook.py,sha256=N1zcJGx-Ijwtc0dIsPWzdnJSLi0ydQTengHBxtbb
11
11
  satori/client/network/websocket.py,sha256=oZtiFLywP_Rw-_I-hl32nShCTTQ1XKlv0BhWJj53x9Y,8476
12
12
  satori/client/protocol.py,sha256=hXrtgh-ypiF1W-dTl5I4LBWg8P2VTNKYQWFq8aRCeeo,28577
13
13
  satori/const.py,sha256=6TQAIlgNq7fHLiadxGUU-mzkffOcpRrEvq5yrWYMuGc,2738
14
- satori/element.py,sha256=Ya0iDwMpgmfdluHWEYEhbaC9fdRZuYRJfjMwLM4vb_E,20707
14
+ satori/element.py,sha256=Yo92PcQUk2vUHomk0zDVXB5wZavnKQCNcgHlPtMWAno,20831
15
15
  satori/event.py,sha256=yC6rKaa7JbeOZ4Un1rX-Isvm3EcR7e782nxYf1j6JdM,1060
16
16
  satori/exception.py,sha256=edKeuLRZAQxyCdw1_XCgOtv5tIHkfHw0Die9B818_HM,545
17
17
  satori/model.py,sha256=L8Wlk4zGlnR5kM4rAsaXvPufxdwmUsshkFY9PLGj8tY,17614
@@ -25,7 +25,7 @@ satori/server/model.py,sha256=zzjNa3iBFkd8crZIVTrEisPaB0g8JsxV4fA2rRU0maw,1105
25
25
  satori/server/route.py,sha256=kpelAX0kYQbJncp5biWi8pWRcEIez9m9sJN8NF3sjn4,10654
26
26
  satori/server/utils.py,sha256=hMNqLzbzcwyLJO-sGncO5kuviiW5Y6k34fj4AS2iVWQ,910
27
27
  satori/utils.py,sha256=N8HEw-DOXxOBwFHmmXgqPdMh6AXjiGR0ZGa1zBPH6EI,822
28
- satori_python-1.3.4.dist-info/METADATA,sha256=06M-7vqckbF3Ib-6quslfGmB05p_7gg_mQ_N0IkBy-M,5511
29
- satori_python-1.3.4.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
30
- satori_python-1.3.4.dist-info/licenses/LICENSE,sha256=2EDswKd1M1648judap8BEEwp3Jz6IpfFP2wYVdU0Y2o,1069
31
- satori_python-1.3.4.dist-info/RECORD,,
28
+ satori_python-1.3.5.dist-info/METADATA,sha256=Qfsx-7KwVQ6mFAgJkwUklMRVmaoqo8WGCIlJCILLX4w,5511
29
+ satori_python-1.3.5.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
30
+ satori_python-1.3.5.dist-info/licenses/LICENSE,sha256=2EDswKd1M1648judap8BEEwp3Jz6IpfFP2wYVdU0Y2o,1069
31
+ satori_python-1.3.5.dist-info/RECORD,,