Skip to content

Commit 023f012

Browse files
authored
Fix driver factory type hints suggesting unsupported options (#1255)
The type hints of the driver factory incorrectly suggested that the config options `max_transaction_retry_time` and `connection_acquisition_timeout` are unsupported.
1 parent 6ea4c12 commit 023f012

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/neo4j/_async/driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def driver(
154154
T_NotificationMinimumSeverity | None
155155
) = ...,
156156
telemetry_disabled: bool = ...,
157+
max_transaction_retry_time: float = ...,
158+
connection_acquisition_timeout: float = ...,
157159
# undocumented/unsupported options
158160
# they may be changed or removed any time without prior notice
159-
connection_acquisition_timeout: float = ...,
160-
max_transaction_retry_time: float = ...,
161161
initial_retry_delay: float = ...,
162162
retry_delay_multiplier: float = ...,
163163
retry_delay_jitter_factor: float = ...,

src/neo4j/_sync/driver.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)