Skip to content

Commit 736e633

Browse files
stainless-botmegamanics
authored andcommitted
chore(internal): fix some typos (openai#718)
1 parent f15aeb2 commit 736e633

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/openai/_utils/_transform.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Params(TypedDict, total=False):
9595
return cast(_T, transformed)
9696

9797

98-
def _get_annoted_type(type_: type) -> type | None:
98+
def _get_annotated_type(type_: type) -> type | None:
9999
"""If the given type is an `Annotated` type then it is returned, if not `None` is returned.
100100
101101
This also unwraps the type when applicable, e.g. `Required[Annotated[T, ...]]`
@@ -115,7 +115,7 @@ def _maybe_transform_key(key: str, type_: type) -> str:
115115
116116
Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
117117
"""
118-
annotated_type = _get_annoted_type(type_)
118+
annotated_type = _get_annotated_type(type_)
119119
if annotated_type is None:
120120
# no `Annotated` definition for this type, no transformation needed
121121
return key
@@ -174,7 +174,7 @@ def _transform_recursive(
174174

175175

176176
def _transform_value(data: object, type_: type) -> object:
177-
annotated_type = _get_annoted_type(type_)
177+
annotated_type = _get_annotated_type(type_)
178178
if annotated_type is None:
179179
return data
180180

Diff for: tests/test_extract_files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_multiple_files() -> None:
5454
[],
5555
],
5656
],
57-
ids=["dict expecting array", "arraye expecting dict", "unknown keys"],
57+
ids=["dict expecting array", "array expecting dict", "unknown keys"],
5858
)
5959
def test_ignores_incorrect_paths(
6060
query: dict[str, object],

0 commit comments

Comments
 (0)