Skip to content

Commit 2373411

Browse files
authored
Fix driver factory type hints suggesting unsupported options (#1256)
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 5e234e8 commit 2373411

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
@@ -164,10 +164,10 @@ def driver(
164164
T_NotificationMinimumSeverity | None
165165
) = ...,
166166
telemetry_disabled: bool = ...,
167+
max_transaction_retry_time: float = ...,
168+
connection_acquisition_timeout: float = ...,
167169
# undocumented/unsupported options
168170
# they may be changed or removed any time without prior notice
169-
connection_acquisition_timeout: float = ...,
170-
max_transaction_retry_time: float = ...,
171171
initial_retry_delay: float = ...,
172172
retry_delay_multiplier: float = ...,
173173
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)