Skip to content

Commit 87a56ce

Browse files
committed
fix(gql.client): update type to permit passing floats
1 parent b7d8150 commit 87a56ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gql/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
type_def: Optional[str] = None,
4747
transport: Optional[Union[Transport, AsyncTransport]] = None,
4848
fetch_schema_from_transport: bool = False,
49-
execute_timeout: Optional[int] = 10,
49+
execute_timeout: Optional[Union[int, float]] = 10,
5050
):
5151
"""Initialize the client with the given parameters.
5252
@@ -57,6 +57,7 @@ def __init__(
5757
the schema from the transport using an introspection query
5858
:param execute_timeout: The maximum time in seconds for the execution of a
5959
request before a TimeoutError is raised. Only used for async transports.
60+
Passing None results in waiting forever for a response.
6061
"""
6162
assert not (
6263
type_def and introspection

0 commit comments

Comments
 (0)