Document config file merge behavior (#18664)
Explains in the doc comment of `synapse.config._base.read_config_file` how config files are merged.
This commit is contained in:
1
changelog.d/18664.misc
Normal file
1
changelog.d/18664.misc
Normal file
@@ -0,0 +1 @@
|
||||
Add doc comment explaining that config files are shallowly merged.
|
||||
@@ -909,7 +909,10 @@ class RootConfig:
|
||||
|
||||
|
||||
def read_config_files(config_files: Iterable[str]) -> Dict[str, Any]:
|
||||
"""Read the config files into a dict
|
||||
"""Read the config files and shallowly merge them into a dict.
|
||||
|
||||
Successive configurations are shallowly merged into ones provided earlier,
|
||||
i.e., entirely replacing top-level sections of the configuration.
|
||||
|
||||
Args:
|
||||
config_files: A list of the config files to read
|
||||
|
||||
Reference in New Issue
Block a user