Skip to content

Commit

Permalink
chore(docs): fix some typos (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 8, 2023
1 parent 5a59bd8 commit 87bfa32
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/finch/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_auth_url(
) -> str:
"""
Returns the authorization url which can be visited in order to obtain an
authorization code from Finch. The autorization code can then be exchanged for
authorization code from Finch. The authorization code can then be exchanged for
an access token for the Finch api by calling get_access_token().
"""
if self.client_id is None:
Expand Down Expand Up @@ -602,7 +602,7 @@ def get_auth_url(
) -> str:
"""
Returns the authorization url which can be visited in order to obtain an
authorization code from Finch. The autorization code can then be exchanged for
authorization code from Finch. The authorization code can then be exchanged for
an access token for the Finch api by calling get_access_token().
"""
if self.client_id is None:
Expand Down
6 changes: 3 additions & 3 deletions src/finch/_utils/_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Params(TypedDict, total=False):
return cast(_T, transformed)


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


def _transform_value(data: object, type_: type) -> object:
annotated_type = _get_annoted_type(type_)
annotated_type = _get_annotated_type(type_)
if annotated_type is None:
return data

Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_verify_signature(self) -> None:
is None
)

# different signaature version
# different signature version
with pytest.raises(ValueError, match=invalid_signature_message):
verify(
payload=payload,
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_verify_signature(self) -> None:
is None
)

# different signaature version
# different signature version
with pytest.raises(ValueError, match=invalid_signature_message):
verify(
payload=payload,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_extract_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_multiple_files() -> None:
[],
],
],
ids=["dict expecting array", "arraye expecting dict", "unknown keys"],
ids=["dict expecting array", "array expecting dict", "unknown keys"],
)
def test_ignores_incorrect_paths(
query: dict[str, object],
Expand Down

0 comments on commit 87bfa32

Please sign in to comment.