Skip to content

Commit 19702d1

Browse files
chore(docs): fix some typos (#172)
1 parent a3dcd4b commit 19702d1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/finch/_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def get_auth_url(
297297
) -> str:
298298
"""
299299
Returns the authorization url which can be visited in order to obtain an
300-
authorization code from Finch. The autorization code can then be exchanged for
300+
authorization code from Finch. The authorization code can then be exchanged for
301301
an access token for the Finch api by calling get_access_token().
302302
"""
303303
if self.client_id is None:
@@ -602,7 +602,7 @@ def get_auth_url(
602602
) -> str:
603603
"""
604604
Returns the authorization url which can be visited in order to obtain an
605-
authorization code from Finch. The autorization code can then be exchanged for
605+
authorization code from Finch. The authorization code can then be exchanged for
606606
an access token for the Finch api by calling get_access_token().
607607
"""
608608
if self.client_id is None:

src/finch/_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

tests/api_resources/test_webhooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_verify_signature(self) -> None:
8383
is None
8484
)
8585

86-
# different signaature version
86+
# different signature version
8787
with pytest.raises(ValueError, match=invalid_signature_message):
8888
verify(
8989
payload=payload,
@@ -183,7 +183,7 @@ def test_verify_signature(self) -> None:
183183
is None
184184
)
185185

186-
# different signaature version
186+
# different signature version
187187
with pytest.raises(ValueError, match=invalid_signature_message):
188188
verify(
189189
payload=payload,

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)