fix(prometheus): use a read-only payload type in the failed model label helper

The type discipline gate counted the dict | StandardLoggingPayload annotation as a new mutable collection.

Signed-off-by: Denel John <denelbjohn18@gmail.com>
This commit is contained in:
Denel John 2026-10-16 14:56:50 -04:00
parent d756f14b59
commit a42a175f14

View file

@ -2602,9 +2602,7 @@ class PrometheusLogger(CustomLogger):
)
@staticmethod
def _bounded_failed_request_model_label(
model: object, standard_logging_payload: dict | StandardLoggingPayload
) -> object:
def _bounded_failed_request_model_label(model: object, standard_logging_payload: StandardLoggingPayload) -> object:
"""
Bound the legacy ``model`` label on the failed-request metric.