File tree 2 files changed +4
-4
lines changed
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):
95
95
return cast (_T , transformed )
96
96
97
97
98
- def _get_annoted_type (type_ : type ) -> type | None :
98
+ def _get_annotated_type (type_ : type ) -> type | None :
99
99
"""If the given type is an `Annotated` type then it is returned, if not `None` is returned.
100
100
101
101
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:
115
115
116
116
Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
117
117
"""
118
- annotated_type = _get_annoted_type (type_ )
118
+ annotated_type = _get_annotated_type (type_ )
119
119
if annotated_type is None :
120
120
# no `Annotated` definition for this type, no transformation needed
121
121
return key
@@ -174,7 +174,7 @@ def _transform_recursive(
174
174
175
175
176
176
def _transform_value (data : object , type_ : type ) -> object :
177
- annotated_type = _get_annoted_type (type_ )
177
+ annotated_type = _get_annotated_type (type_ )
178
178
if annotated_type is None :
179
179
return data
180
180
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def test_multiple_files() -> None:
54
54
[],
55
55
],
56
56
],
57
- ids = ["dict expecting array" , "arraye expecting dict" , "unknown keys" ],
57
+ ids = ["dict expecting array" , "array expecting dict" , "unknown keys" ],
58
58
)
59
59
def test_ignores_incorrect_paths (
60
60
query : dict [str , object ],
You can’t perform that action at this time.
0 commit comments