Skip to content

fix(lexical-graph): avoid duplicate Neptune Config arguments#396

Open
marora90 wants to merge 2 commits into
awslabs:mainfrom
marora90:config-read-timeout
Open

fix(lexical-graph): avoid duplicate Neptune Config arguments#396
marora90 wants to merge 2 commits into
awslabs:mainfrom
marora90:config-read-timeout

Conversation

@marora90

Copy link
Copy Markdown

Description

Continues #368 by @evanerwee. Their original commit was cherry-picked to preserve authorship, and this PR adds the regression coverage requested in review.

This fixes create_config() so user-provided botocore config values override the defaults.

Fixes #361.

Testing

  • Unit tests added/updated
  • Existing tests pass (pytest)

Checklist

  • Code follows existing style and conventions
  • License headers present on new files
  • Documentation updated (if applicable)
  • No breaking changes (or clearly documented)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

evanerwee and others added 2 commits July 14, 2026 13:30
When a user passes read_timeout (or retries, user_agent_appid) via the
config JSON string, Config() receives duplicate keyword arguments and
raises TypeError.

The fix uses setdefault() for all hardcoded values — the same pattern
already used for max_pool_connections on the line immediately above.
User-provided values take precedence; defaults apply when absent.

Fixes awslabs#361

(cherry picked from commit 78ea17b)

@mykola-pereyma mykola-pereyma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Neptune create_config raises TypeError when read_timeout is passed

4 participants