1.7.33 sync

This commit is contained in:
Ayush Saini 2024-03-10 15:37:50 +05:30
parent 0aad008699
commit ea0d105e12
23 changed files with 405 additions and 228 deletions

View file

@ -18,10 +18,10 @@ if TYPE_CHECKING:
@ioprepped
@dataclass
class DirectoryManifestFile:
"""Describes metadata and hashes for a file in a manifest."""
"""Describes a file in a manifest."""
filehash: Annotated[str, IOAttrs('h')]
filesize: Annotated[int, IOAttrs('s')]
hash_sha256: Annotated[str, IOAttrs('h')]
size: Annotated[int, IOAttrs('s')]
@ioprepped
@ -67,7 +67,7 @@ class DirectoryManifest:
return (
filepath,
DirectoryManifestFile(
filehash=sha.hexdigest(), filesize=filesize
hash_sha256=sha.hexdigest(), size=filesize
),
)