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:
Brohammad 2026-07-28 18:11:46 +05:30
parent 33e7414932
commit cc94fe797c

View file

@ -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)