mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
fix(sap): use PEP 604 union in merge_sap_request_headers signature
UP045 strict budget failed on Optional[Mapping[...]] after rebase onto staging Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
33e7414932
commit
cc94fe797c
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Mapping, Optional
|
||||
from typing import Mapping
|
||||
|
||||
_SAP_RESERVED_HEADERS = frozenset(
|
||||
{
|
||||
|
|
@ -12,7 +12,7 @@ _SAP_RESERVED_HEADERS = frozenset(
|
|||
|
||||
def merge_sap_request_headers(
|
||||
provider_headers: Mapping[str, str],
|
||||
caller_headers: Optional[Mapping[str, str]],
|
||||
caller_headers: Mapping[str, str] | None,
|
||||
) -> dict[str, str]:
|
||||
if not caller_headers:
|
||||
return dict(provider_headers)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue