mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
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:
parent
363e389255
commit
6eca0ef72c
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue