mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
Remove incorrect comment about lazy evaluation of setting sources (#3806)
* Remove incorrect comment about lazy evaluation of setting sources It looks like the current implementation always evaluates every source (https://github.com/samuelcolvin/pydantic/blob/9d631a3429a66f30742c1a52c94ac18ec6ba848d/pydantic/env_settings.py#L73) before coalescing them into a single dictionary to pass to `BaseModel`. So the comment about lazy evaluation is incorrect and should be removed. * Add changelog
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Update documentation about lazy evaluation of sources for Settings (it's not actually done).
|
||||
@@ -278,6 +278,3 @@ You might also want to disable a source:
|
||||
{!.tmp_examples/settings_disable_source.py!}
|
||||
```
|
||||
_(This script is complete, it should run "as is", here you might need to set the `my_api_key` environment variable)_
|
||||
|
||||
Because of the callables approach of `customise_sources`, evaluation of sources is lazy so unused sources don't
|
||||
have an adverse effect on performance.
|
||||
|
||||
Reference in New Issue
Block a user