xloft 0.1.15__py3-none-any.whl → 0.1.16__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.
Potentially problematic release.
This version of xloft might be problematic. Click here for more details.
xloft/namedtuple.py
CHANGED
|
@@ -37,8 +37,6 @@ Examples:
|
|
|
37
37
|
>>> nt.update("x", 20)
|
|
38
38
|
>>> nt.x
|
|
39
39
|
20
|
|
40
|
-
>>> from xloft import NamedTuple
|
|
41
|
-
>>> nt = NamedTuple(x=10, y="Hello")
|
|
42
40
|
>>> for key, val in nt.items():
|
|
43
41
|
... print(f"Key: {key}, Value: {val}")
|
|
44
42
|
"Key: x, Value: 10"
|
|
@@ -145,7 +143,7 @@ class NamedTuple:
|
|
|
145
143
|
None
|
|
146
144
|
"""
|
|
147
145
|
keys: list[str] = self._jWjSaNy1RbtQinsN_keys
|
|
148
|
-
if not
|
|
146
|
+
if key not in keys:
|
|
149
147
|
err_msg = f"The key `{key}` is missing!"
|
|
150
148
|
raise KeyError(err_msg)
|
|
151
149
|
self.__dict__[key] = value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xloft
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.16
|
|
4
4
|
Summary: (XLOFT) X-Library of tools
|
|
5
5
|
Project-URL: Homepage, https://github.com/kebasyaty/xloft
|
|
6
6
|
Project-URL: Repository, https://github.com/kebasyaty/xloft
|
|
@@ -31,7 +31,7 @@ Description-Content-Type: text/markdown
|
|
|
31
31
|
<p align="center">
|
|
32
32
|
<a href="https://github.com/kebasyaty/xloft">
|
|
33
33
|
<img
|
|
34
|
-
height="
|
|
34
|
+
height="80"
|
|
35
35
|
alt="Logo"
|
|
36
36
|
src="https://raw.githubusercontent.com/kebasyaty/xloft/main/assets/logo.svg">
|
|
37
37
|
</a>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
xloft/__init__.py,sha256=YtzkovVqW8hLxBXxM0U7K_qqfU8XBJ1pzX6tAgTUNFw,215
|
|
2
|
+
xloft/errors.py,sha256=GYXvi2l01VUDQSs6skiOfQsKLF6tFuUhJMqNkL7BJNI,857
|
|
3
|
+
xloft/namedtuple.py,sha256=3ua0zTh9aAk7pucr6Mxrn6l-vRs_Jj0LdYwhij8PFsg,6631
|
|
4
|
+
xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
xloft-0.1.16.dist-info/METADATA,sha256=9kqznL4M1xNoZB4POK4vkFiVeJp39L61OnLPY-E_OVk,6037
|
|
6
|
+
xloft-0.1.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
xloft-0.1.16.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
+
xloft-0.1.16.dist-info/RECORD,,
|
xloft-0.1.15.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
xloft/__init__.py,sha256=YtzkovVqW8hLxBXxM0U7K_qqfU8XBJ1pzX6tAgTUNFw,215
|
|
2
|
-
xloft/errors.py,sha256=GYXvi2l01VUDQSs6skiOfQsKLF6tFuUhJMqNkL7BJNI,857
|
|
3
|
-
xloft/namedtuple.py,sha256=JfbEisEa00m8zLtc8TMljCZmU-a9PdoAvshE6j0jSpQ,6711
|
|
4
|
-
xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
xloft-0.1.15.dist-info/METADATA,sha256=MLp8eZdlYKpEo6b-sFnob7Xt02xlzcb5VFkoRvzY-qs,6037
|
|
6
|
-
xloft-0.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
xloft-0.1.15.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
-
xloft-0.1.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|