satori-python-core 1.3.4__tar.gz → 1.3.5__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_core-1.3.4 → satori_python_core-1.3.5}/PKG-INFO +1 -1
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/pyproject.toml +1 -1
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/__init__.py +1 -1
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/element.py +3 -1
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/.mina/core.toml +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/LICENSE +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/README.md +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/_vendor/fleep.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/const.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/event.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/exception.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/model.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/parser.py +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/py.typed +0 -0
- {satori_python_core-1.3.4 → satori_python_core-1.3.5}/src/satori/utils.py +0 -0
|
@@ -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:
|
|
492
|
+
content: Sequence[str | Element] | None = None,
|
|
491
493
|
):
|
|
492
494
|
self.id = id
|
|
493
495
|
self.forward = forward
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|