Skip to content

Commit 0f4f2e0

Browse files
authored
Merge pull request typesense#75 from tharropoulos/fix/config-dict
fix: add connection timeout seconds to config dict
2 parents 1260829 + 3c24c93 commit 0f4f2e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/typesense/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class ConfigDict(typing.TypedDict):
7878
7979
read_replica_nodes (list[typing.Union[str, NodeConfigDict]], deprecated): A list of
8080
dictionaries or URLs that represent the read replica nodes.
81+
82+
connection_timeout_seconds (float): The connection timeout in seconds.
8183
"""
8284

8385
nodes: typing.List[typing.Union[str, NodeConfigDict]]
@@ -93,6 +95,7 @@ class ConfigDict(typing.TypedDict):
9395
read_replica_nodes: typing.NotRequired[
9496
typing.List[typing.Union[str, NodeConfigDict]]
9597
] # deprecated
98+
connection_timeout_seconds: typing.NotRequired[float]
9699

97100

98101
class Node:

0 commit comments

Comments
 (0)