Using starlette 's Config and Environ from starlette.config , implement a PrefixedConfigReader class that…
Using starlette 's Config and Environ from starlette.config , implement a PrefixedConfigReader class that…: a task in repo2rlenv-code-instruct (Harbor dataset). PrefixedConfigReader must: 1. Accept a prefix string and an optional mapping of environment variables at construction time. 2. Expose a…
The task
`PrefixedConfigReader` must: 1. Accept a prefix string and an optional mapping of environment variables at construction time. 2. Expose a `read(key, cast=None, default=...)` method that delegates to the underlying `Config` object (using its prefix support) to fetch and optionally cast values. 3. Expose a…
Part of FineEnvs/repo2rlenv-code-instruct.