From fc99bfa81b504a000b82ac463199fa0561dcc232 Mon Sep 17 00:00:00 2001 From: Nitesh Sandal Date: Mon, 15 Sep 2025 10:51:07 -0400 Subject: [PATCH] resolve issue with async client passthrough import --- pyproject.toml | 2 +- src/merge/core/client_wrapper.py | 4 ++-- src/merge/resources/accounting/client.py | 6 +++--- src/merge/resources/ats/client.py | 6 +++--- src/merge/resources/crm/client.py | 6 +++--- src/merge/resources/filestorage/client.py | 6 +++--- src/merge/resources/hris/client.py | 6 +++--- src/merge/resources/ticketing/client.py | 6 +++--- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 008bd7ad..e09f7d3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "MergePythonClient" [tool.poetry] name = "MergePythonClient" -version = "2.3.0" +version = "2.3.1" description = "" readme = "README.md" authors = [] diff --git a/src/merge/core/client_wrapper.py b/src/merge/core/client_wrapper.py index 54023ced..6a57682e 100644 --- a/src/merge/core/client_wrapper.py +++ b/src/merge/core/client_wrapper.py @@ -24,10 +24,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "MergePythonClient/2.3.0", + "User-Agent": "MergePythonClient/2.3.1", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "MergePythonClient", - "X-Fern-SDK-Version": "2.3.0", + "X-Fern-SDK-Version": "2.3.1", **(self.get_custom_headers() or {}), } if self._account_token is not None: diff --git a/src/merge/resources/accounting/client.py b/src/merge/resources/accounting/client.py index 4c07078b..3f8f0a08 100644 --- a/src/merge/resources/accounting/client.py +++ b/src/merge/resources/accounting/client.py @@ -834,9 +834,9 @@ def linked_accounts(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_accounting_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property diff --git a/src/merge/resources/ats/client.py b/src/merge/resources/ats/client.py index defa584b..0a094c9e 100644 --- a/src/merge/resources/ats/client.py +++ b/src/merge/resources/ats/client.py @@ -609,9 +609,9 @@ def offices(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_ats_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property diff --git a/src/merge/resources/crm/client.py b/src/merge/resources/crm/client.py index 18bc04ad..b478650e 100644 --- a/src/merge/resources/crm/client.py +++ b/src/merge/resources/crm/client.py @@ -579,9 +579,9 @@ def opportunities(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_crm_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property diff --git a/src/merge/resources/filestorage/client.py b/src/merge/resources/filestorage/client.py index 587cbed3..0c9f5a0f 100644 --- a/src/merge/resources/filestorage/client.py +++ b/src/merge/resources/filestorage/client.py @@ -426,9 +426,9 @@ def linked_accounts(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_filestorage_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property diff --git a/src/merge/resources/hris/client.py b/src/merge/resources/hris/client.py index b0d47eca..c990cae3 100644 --- a/src/merge/resources/hris/client.py +++ b/src/merge/resources/hris/client.py @@ -593,9 +593,9 @@ def locations(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_hris_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property diff --git a/src/merge/resources/ticketing/client.py b/src/merge/resources/ticketing/client.py index 42aa49d5..feec2cee 100644 --- a/src/merge/resources/ticketing/client.py +++ b/src/merge/resources/ticketing/client.py @@ -500,9 +500,9 @@ def linked_accounts(self): @property def passthrough(self): if self._passthrough is None: - self._passthrough = resources_ticketing_resources_passthrough_client_AsyncPassthroughClient( - client_wrapper=self._client_wrapper - ) + from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402 + + self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper) return self._passthrough @property