Skip to content

Commit eba0ca9

Browse files
Fix project types
1 parent cfbf28c commit eba0ca9

5 files changed

Lines changed: 6 additions & 8 deletions

File tree

helloasso_api_wrapper/clients/checkout_intents_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CheckoutIntentsManagement(GenericClient):
1010
def retrieve_a_checkout_intent(
1111
self,
1212
organization_slug: str,
13-
checkout_intent_id: str,
13+
checkout_intent_id: int,
1414
) -> CheckoutIntentResponse:
1515
"""
1616
Retrieve a checkout intent, with the order if the payment has been authorized.

helloasso_api_wrapper/clients/orders_items.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
from helloasso_api_wrapper.clients.generic_client import GenericClient
44
from helloasso_api_wrapper.models.enums import FormType, SortField, SortOrder
55
from helloasso_api_wrapper.models.forms import (
6-
FormPublicModel,
76
FormQuickCreateModel,
8-
FormQuickCreateRequest,
97
)
108
from helloasso_api_wrapper.models.statistics import Item
119

helloasso_api_wrapper/clients/users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Users(GenericClient):
66
def get_my_organizations(self) -> list[OrganizationLightModel]:
7-
return self.api.callAndSerializeList(
7+
return self.api.callAndSerialize(
88
"/users/me/organizations",
9-
OrganizationLightModel,
9+
list[OrganizationLightModel],
1010
)

helloasso_api_wrapper/ha_apiv5_extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pydantic import BaseModel, TypeAdapter
77

88

9-
class HaApiV5Extension(HaApiV5):
9+
class HaApiV5Extension(HaApiV5): # type: ignore
1010
"""
1111
The class inherit from HaApiV5 and add some methods to serialize the response of the API.
1212
"""
@@ -53,7 +53,7 @@ def serialize(
5353
model: type[Model],
5454
) -> Model:
5555
type_adapter = TypeAdapter(model)
56-
return type_adapter.validate_python(obj)
56+
return type_adapter.validate_python(obj) # type: ignore
5757

5858
def callAndSerialize(
5959
self,

tests/test_checkout_intents_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_init_a_checkout() -> None:
2828

2929

3030
def test_retrieve_a_checkout_intent() -> None:
31-
hello_asso.retrieve_a_checkout_intent(
31+
hello_asso.checkout_intents_management.retrieve_a_checkout_intent(
3232
organization_slug,
3333
checkout_intent_id,
3434
)

0 commit comments

Comments
 (0)