fix(types): widen _emit_deferred_llm_call time params to int | None

to_ns() returns int | None and the SpanEmitter.emit accepts int | None for
start/end times, but _emit_deferred_llm_call declared them as int, producing 4
reportArgumentType errors the basedpyright delta gate flagged. Widen the params
to match.
This commit is contained in:
yucheng-berriai 2026-06-23 18:00:50 -07:00
parent 363e389255
commit 6eca0ef72c

View file

@ -362,8 +362,8 @@ class OpenTelemetryV2(CustomLogger):
self,
payload: "StandardLoggingPayload",
destinations: "tuple[OtelDestination, ...]",
start_time_ns: int,
end_time_ns: int,
start_time_ns: int | None,
end_time_ns: int | None,
) -> Span | None:
"""Emit an LLM-call span outside the ``pre_call`` boundary.