koro 1.1.4__py3-none-any.whl → 1.1.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.
- koro/item/group.py +2 -1
- {koro-1.1.4.dist-info → koro-1.1.5.dist-info}/METADATA +1 -1
- {koro-1.1.4.dist-info → koro-1.1.5.dist-info}/RECORD +6 -6
- {koro-1.1.4.dist-info → koro-1.1.5.dist-info}/LICENSE +0 -0
- {koro-1.1.4.dist-info → koro-1.1.5.dist-info}/WHEEL +0 -0
- {koro-1.1.4.dist-info → koro-1.1.5.dist-info}/top_level.txt +0 -0
koro/item/group.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
from abc import ABC
|
2
2
|
from collections.abc import Iterable, Sequence
|
3
|
+
from itertools import chain, repeat
|
3
4
|
from typing import Final, Generic, Optional, TypeVar
|
4
5
|
|
5
6
|
from .level import Level, LevelNotFoundError
|
@@ -37,7 +38,7 @@ class Group(ABC, Generic[_L], Sequence[_L]):
|
|
37
38
|
|
38
39
|
def write(self, new_content: Iterable[Optional[bytes]], /) -> None:
|
39
40
|
"""Replace the contents of this Group with the specified new content. None values will empty the slot they correspond to."""
|
40
|
-
for src, dest in zip(new_content,
|
41
|
+
for src, dest in zip(chain(new_content, repeat(None)), self):
|
41
42
|
if src is None:
|
42
43
|
try:
|
43
44
|
dest.delete()
|
@@ -5,11 +5,11 @@ koro/file/dir.py,sha256=pnMQJAQRlzcm_MC14goDeKlQ3llKhywM1FdADHM8xds,6632
|
|
5
5
|
koro/file/lvl.py,sha256=lrVpQyZFj1JlVPYx-OkcCne8VdjHCWQIuOX0pls1Dto,1130
|
6
6
|
koro/file/zip.py,sha256=qqyr-FmrgEj4xHuvhpCw_QMcieqIXrKn4xCYpITNAvQ,7435
|
7
7
|
koro/item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
koro/item/group.py,sha256=
|
8
|
+
koro/item/group.py,sha256=bvKnQzXULy3dw-YA5Hn7E9ErbgZlMGxR-K2ucjYNnaw,1583
|
9
9
|
koro/item/level.py,sha256=KXiOK3RGC72WK4lduf3RO9Cs1zXaJRk0EfJCDndA4bs,3068
|
10
10
|
koro/item/save.py,sha256=LUV79vW3gY__jVVVG1kcYW-wzsGCRlYq126nulbT37Y,607
|
11
|
-
koro-1.1.
|
12
|
-
koro-1.1.
|
13
|
-
koro-1.1.
|
14
|
-
koro-1.1.
|
15
|
-
koro-1.1.
|
11
|
+
koro-1.1.5.dist-info/LICENSE,sha256=Q2ptU2E48gOsMzhYz_kqVovmJ5d1KzrblLyqD2_-fvY,1235
|
12
|
+
koro-1.1.5.dist-info/METADATA,sha256=6qUWxHzoxcxQAWKsNY1f6fIqNpBXC1aEIruwuivfmGs,628
|
13
|
+
koro-1.1.5.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
|
14
|
+
koro-1.1.5.dist-info/top_level.txt,sha256=Msq6ssMwv56hnBQqwaTdJJkxM7x7BZ-3JfQbkepQAEY,5
|
15
|
+
koro-1.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|