Skip to content

Commit 9a5966c

Browse files
chore(internal): update type hint for helper function (#846)
1 parent 90aa5eb commit 9a5966c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openai/_utils/_transform.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any, List, Mapping, TypeVar, cast
3+
from typing import Any, Mapping, TypeVar, cast
44
from datetime import date, datetime
55
from typing_extensions import Literal, get_args, override, get_type_hints
66

@@ -60,7 +60,7 @@ def __repr__(self) -> str:
6060

6161

6262
def maybe_transform(
63-
data: Mapping[str, object] | List[Any] | None,
63+
data: object,
6464
expected_type: object,
6565
) -> Any | None:
6666
"""Wrapper over `transform()` that allows `None` to be passed.

0 commit comments

Comments
 (0)