satori-python 1.3.11__tar.gz → 1.3.11.post1__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-1.3.11 → satori_python-1.3.11.post1}/PKG-INFO +1 -1
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/pyproject.toml +1 -1
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/__init__.py +1 -1
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/element.py +2 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/parser.py +2 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/LICENSE +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/README.md +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/_vendor/fleep.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/__init__.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/account.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/account.pyi +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/config.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/network/__init__.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/network/base.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/network/util.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/network/webhook.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/network/websocket.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/client/protocol.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/const.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/event.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/exception.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/model.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/py.typed +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/reconnect.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/__init__.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/adapter.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/connection.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/formdata.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/model.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/route.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/server/utils.py +0 -0
- {satori_python-1.3.11 → satori_python-1.3.11.post1}/src/satori/utils.py +0 -0
|
@@ -144,6 +144,8 @@ class Element:
|
|
|
144
144
|
return self._attrs[key]
|
|
145
145
|
|
|
146
146
|
def raw(self) -> RawElement:
|
|
147
|
+
if not self._attrs:
|
|
148
|
+
self._attrs = {k: v for k, v in self.__dict__.items() if not k.startswith("_")}
|
|
147
149
|
return RawElement(self.tag, self._attrs, [c.raw() for c in self._children])
|
|
148
150
|
|
|
149
151
|
|
|
@@ -96,9 +96,11 @@ class Element:
|
|
|
96
96
|
type: str | Render[Fragment, Any],
|
|
97
97
|
attrs: dict[str, Any] | None = None,
|
|
98
98
|
*children: Fragment,
|
|
99
|
+
source: str | None = None,
|
|
99
100
|
) -> None:
|
|
100
101
|
self.attrs = {}
|
|
101
102
|
self.children = []
|
|
103
|
+
self.source = source
|
|
102
104
|
if attrs:
|
|
103
105
|
for k, v in attrs.items():
|
|
104
106
|
if v is None:
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|