Skip to content

Commit fc99bfa

Browse files
resolve issue with async client passthrough import
1 parent ba6d743 commit fc99bfa

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "MergePythonClient"
33

44
[tool.poetry]
55
name = "MergePythonClient"
6-
version = "2.3.0"
6+
version = "2.3.1"
77
description = ""
88
readme = "README.md"
99
authors = []

src/merge/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def __init__(
2424

2525
def get_headers(self) -> typing.Dict[str, str]:
2626
headers: typing.Dict[str, str] = {
27-
"User-Agent": "MergePythonClient/2.3.0",
27+
"User-Agent": "MergePythonClient/2.3.1",
2828
"X-Fern-Language": "Python",
2929
"X-Fern-SDK-Name": "MergePythonClient",
30-
"X-Fern-SDK-Version": "2.3.0",
30+
"X-Fern-SDK-Version": "2.3.1",
3131
**(self.get_custom_headers() or {}),
3232
}
3333
if self._account_token is not None:

src/merge/resources/accounting/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@ def linked_accounts(self):
834834
@property
835835
def passthrough(self):
836836
if self._passthrough is None:
837-
self._passthrough = resources_accounting_resources_passthrough_client_AsyncPassthroughClient(
838-
client_wrapper=self._client_wrapper
839-
)
837+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
838+
839+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
840840
return self._passthrough
841841

842842
@property

src/merge/resources/ats/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ def offices(self):
609609
@property
610610
def passthrough(self):
611611
if self._passthrough is None:
612-
self._passthrough = resources_ats_resources_passthrough_client_AsyncPassthroughClient(
613-
client_wrapper=self._client_wrapper
614-
)
612+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
613+
614+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
615615
return self._passthrough
616616

617617
@property

src/merge/resources/crm/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,9 @@ def opportunities(self):
579579
@property
580580
def passthrough(self):
581581
if self._passthrough is None:
582-
self._passthrough = resources_crm_resources_passthrough_client_AsyncPassthroughClient(
583-
client_wrapper=self._client_wrapper
584-
)
582+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
583+
584+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
585585
return self._passthrough
586586

587587
@property

src/merge/resources/filestorage/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ def linked_accounts(self):
426426
@property
427427
def passthrough(self):
428428
if self._passthrough is None:
429-
self._passthrough = resources_filestorage_resources_passthrough_client_AsyncPassthroughClient(
430-
client_wrapper=self._client_wrapper
431-
)
429+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
430+
431+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
432432
return self._passthrough
433433

434434
@property

src/merge/resources/hris/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ def locations(self):
593593
@property
594594
def passthrough(self):
595595
if self._passthrough is None:
596-
self._passthrough = resources_hris_resources_passthrough_client_AsyncPassthroughClient(
597-
client_wrapper=self._client_wrapper
598-
)
596+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
597+
598+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
599599
return self._passthrough
600600

601601
@property

src/merge/resources/ticketing/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ def linked_accounts(self):
500500
@property
501501
def passthrough(self):
502502
if self._passthrough is None:
503-
self._passthrough = resources_ticketing_resources_passthrough_client_AsyncPassthroughClient(
504-
client_wrapper=self._client_wrapper
505-
)
503+
from .resources.passthrough.client import AsyncPassthroughClient # noqa: E402
504+
505+
self._passthrough = AsyncPassthroughClient(client_wrapper=self._client_wrapper)
506506
return self._passthrough
507507

508508
@property

0 commit comments

Comments
 (0)