Skip to content

Commit 7425f0a

Browse files
committed
chore: add ape_pie to project dependencies
The project already had a transitive dependency on ape_pie through zgw_consumers. ape_pie is added as first-class dependency to add type hints in the Client class.
1 parent fa80f58 commit 7425f0a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

objectsapiclient/client.py

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

55
from django.core.exceptions import ImproperlyConfigured
66

7+
import ape_pie
78
from requests.exceptions import HTTPError
89
from zgw_consumers.api_models.base import factory
910
from zgw_consumers.client import build_client as build_zgw_client
@@ -29,8 +30,10 @@ def __init__(self, config: ObjectsClientConfiguration | None = None):
2930
"Objects API and Objecttypes API"
3031
)
3132

32-
self.objects = build_zgw_client(service=self.config.objects_api_service_config)
33-
self.object_types = build_zgw_client(
33+
self.objects: ape_pie.APIClient = build_zgw_client(
34+
service=self.config.objects_api_service_config
35+
)
36+
self.object_types: ape_pie.APIClient = build_zgw_client(
3437
service=self.config.object_type_api_service_config
3538
)
3639

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers = [
3232
dependencies = [
3333
"django >= 4.2",
3434
"django-solo",
35+
"ape_pie",
3536
"requests",
3637
"zgw_consumers",
3738
]

0 commit comments

Comments
 (0)