fix(spend-tracking): make the new batch count keys writable

SpendLogsMetadata is built by assigning each key in turn, so ReadOnly on the
two new ones breached the basedpyright reportTypedDictNotRequiredAccess
ceiling. Every sibling key in this TypedDict is writable for the same reason.
This commit is contained in:
mubashir1osmani 2026-08-24 19:26:52 -04:00
parent 65af77c43b
commit 5a7edc9c77

View file

@ -3528,8 +3528,8 @@ class SpendLogsMetadata(TypedDict):
status: StandardLoggingPayloadStatus
proxy_server_request: str | None
batch_models: list[str] | None
batch_successful_requests: ReadOnly[int | None]
batch_failed_requests: ReadOnly[int | None]
batch_successful_requests: int | None # writable-ok: built by assignment like every sibling key in this TypedDict
batch_failed_requests: int | None # writable-ok: built by assignment like every sibling key in this TypedDict
error_information: StandardLoggingPayloadErrorInformation | None
usage_object: dict | None
model_map_information: StandardLoggingModelInformation | None