Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access config values out from stores #210

Merged
merged 3 commits into from
Feb 4, 2025
Merged

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Feb 4, 2025

Now that we've merged #209, this is much simpler to do, because all configuration is stored in at most four places:

  • prefix
  • store-specific config
  • client config
  • retry config

The most annoying part of this PR is that the configuration parameters returned are a strict subset of the allowed input for config parameters. And the python type system apparently doesn't allow the narrower typed dict to be passed directly to a function that accepts the broader typed dict. So it's a bit verbose, but at least the typing works.

Closes #191

@kylebarron kylebarron merged commit f13c8ec into main Feb 4, 2025
4 checks passed
@kylebarron kylebarron deleted the kyle/extract-config branch February 4, 2025 23:45
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.

Retrieve config from a store
1 participant