finish seat

This commit is contained in:
2026-01-25 04:52:44 -03:00
parent 5fac7888a8
commit 3719842ae9
31 changed files with 731 additions and 134 deletions

View File

@@ -100,7 +100,7 @@ class BatchProcessor(AbstractContextManager):
def __exit__(self, *exc_details) -> None:
pass
def process(self) -> Sequence[Result]:
def process(self) -> tuple[Result, ...]:
return tuple(self._process_record(record) for record in self.records)
def _process_record(self, record: Any) -> Result:

View File

@@ -7,7 +7,7 @@ from base64 import urlsafe_b64decode, urlsafe_b64encode
from dataclasses import dataclass
from datetime import date, datetime
from ipaddress import IPv4Address
from typing import TYPE_CHECKING, Any, Self, Type, TypedDict
from typing import TYPE_CHECKING, Any, Generic, Self, Type, TypedDict, TypeVar
from urllib.parse import quote, unquote
from uuid import UUID
@@ -851,8 +851,11 @@ class MissingError(Exception):
pass
class PaginatedResult(TypedDict):
items: list[dict]
T = TypeVar('T')
class PaginatedResult(TypedDict, Generic[T]):
items: list[T]
last_key: str | None

View File

@@ -1,6 +1,6 @@
[project]
name = "layercake"
version = "0.13.1"
version = "0.13.4"
description = "Packages shared dependencies to optimize deployment and ensure consistency across functions."
readme = "README.md"
authors = [