Skip to content

Commit

Permalink
chore(internal): update type hint for helper function (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 18, 2023
1 parent e2f9ad8 commit b081f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anthropic/_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

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

0 comments on commit b081f74

Please sign in to comment.