Skip to content

Comments

Access config values out from stores#210

Merged
kylebarron merged 3 commits intomainfrom
kyle/extract-config
Feb 4, 2025
Merged

Access config values out from stores#210
kylebarron merged 3 commits intomainfrom
kyle/extract-config

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