Skip to content

Commit 49a48a3

Browse files
committed
Switching from | to Union
1 parent b36764d commit 49a48a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/model_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dataclasses
44
from collections.abc import Mapping
55
from dataclasses import dataclass, fields, replace
6-
from typing import Annotated, Any, Literal
6+
from typing import Annotated, Any, Literal, Union
77

88
from openai import Omit as _Omit
99
from openai._types import Body, Query
@@ -44,7 +44,7 @@ def validate_from_none(value: None) -> _Omit:
4444
),
4545
)
4646
Omit = Annotated[_Omit, _OmitTypeAnnotation]
47-
Headers: TypeAlias = Mapping[str, str | Omit]
47+
Headers: TypeAlias = Mapping[str, Union[str, Omit]]
4848

4949
@dataclass
5050
class ModelSettings:

0 commit comments

Comments
 (0)