File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
176176def _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
Original file line number Diff line number Diff 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)
5959def test_ignores_incorrect_paths (
6060 query : dict [str , object ],
You can’t perform that action at this time.
0 commit comments