Voice et bot modif

This commit is contained in:
pi 2026-06-16 17:09:34 +00:00
parent 189d56026b
commit 7333a22bcd
10774 changed files with 634644 additions and 933308 deletions

View file

@ -1,11 +1,11 @@
"""Utilities to efficiently compute the SHA 256 hash of a bunch of bytes."""
from typing import BinaryIO, Optional
from typing import BinaryIO
from .insecure_hashlib import sha1, sha256
def sha_fileobj(fileobj: BinaryIO, chunk_size: Optional[int] = None) -> bytes:
def sha_fileobj(fileobj: BinaryIO, chunk_size: int | None = None) -> bytes:
"""
Computes the sha256 hash of the given file object, by chunks of size `chunk_size`.