Skip to content

Commit

Permalink
chore(internal): update type hint for helper function (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 17, 2023
1 parent 90aa5eb commit 9a5966c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openai/_utils/_transform.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Any, List, Mapping, TypeVar, cast
from typing import Any, Mapping, TypeVar, cast
from datetime import date, datetime
from typing_extensions import Literal, get_args, override, get_type_hints

Expand Down Expand Up @@ -60,7 +60,7 @@ def __repr__(self) -> str:


def maybe_transform(
data: Mapping[str, object] | List[Any] | None,
data: object,
expected_type: object,
) -> Any | None:
"""Wrapper over `transform()` that allows `None` to be passed.
Expand Down

0 comments on commit 9a5966c

Please sign in to comment.