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:
Gary Donovan
2022-04-03 01:25:43 +11:00
committed by GitHub
parent 36c53ceaa3
commit 7f90b2f342
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Update documentation about lazy evaluation of sources for Settings (it's not actually done).
-3
View File
@@ -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.