I tried to use pydantic-settings for project configuration management, but I couldn't understand why the pyproject_toml_table_header is restricted to a single block.
If multiple headers are provided, this logic seems to overwrite toml_data repeatedly, resulting in toml_data containing content from only one header. Is my understanding correct?
Are there any alternative logics to better handle this content? For instance, would it be more appropriate to use something like:
self.toml_data = {k:v for k, v in self.toml_data.items() if k in self.toml_table_header}
Issue Context
I tried to use pydantic-settings for project configuration management, but I couldn't understand why the pyproject_toml_table_header is restricted to a single block.
If multiple headers are provided, this logic seems to overwrite toml_data repeatedly, resulting in toml_data containing content from only one header. Is my understanding correct?
Are there any alternative logics to better handle this content? For instance, would it be more appropriate to use something like:
or other