Skip to content

Commit 2b51b50

Browse files
committed
Fix missing timeout argument from client constructor
The low-level client classes already supported the `timeout` argument, but our custom client wrappers don't. This change fixes that discrepancy (see issue #244).
1 parent 2be15bf commit 2b51b50

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "pipedream"
7-
version = "1.1.1"
7+
version = "1.1.2"
88
description = ""
99
readme = "README.md"
1010
authors = []

src/pipedream/core/client_wrapper.py

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

2828
def get_headers(self) -> typing.Dict[str, str]:
2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "pipedream/1.1.1",
30+
"User-Agent": "pipedream/1.1.2",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "pipedream",
33-
"X-Fern-SDK-Version": "1.1.1",
33+
"X-Fern-SDK-Version": "1.1.2",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._project_environment is not None:

src/pipedream/pipedream.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(
2828
),
2929
environment: PipedreamEnvironment = PipedreamEnvironment.PROD,
3030
workflow_domain: Optional[str] = None,
31+
timeout: Optional[float] = None,
3132
):
3233
if not project_id:
3334
raise ValueError("Project ID is required")
@@ -38,6 +39,7 @@ def __init__(
3839
project_environment=project_environment,
3940
project_id=project_id,
4041
token=(lambda: access_token),
42+
timeout=timeout,
4143
)
4244
else:
4345
super().__init__(
@@ -46,6 +48,7 @@ def __init__(
4648
project_id=project_id,
4749
client_id=client_id,
4850
client_secret=client_secret,
51+
timeout=timeout,
4952
)
5053

5154
if not workflow_domain:
@@ -79,6 +82,7 @@ def __init__(
7982
),
8083
environment: PipedreamEnvironment = PipedreamEnvironment.PROD,
8184
workflow_domain: Optional[str] = None,
85+
timeout: Optional[float] = None,
8286
):
8387
if not project_id:
8488
raise ValueError("Project ID is required")
@@ -89,6 +93,7 @@ def __init__(
8993
project_environment=project_environment,
9094
project_id=project_id,
9195
token=(lambda: access_token),
96+
timeout=timeout,
9297
)
9398
else:
9499
super().__init__(
@@ -97,6 +102,7 @@ def __init__(
97102
project_id=project_id,
98103
client_id=client_id,
99104
client_secret=client_secret,
105+
timeout=timeout,
100106
)
101107

102108
if not workflow_domain:

0 commit comments

Comments
 (0)