diff --git a/configzen/config.py b/configzen/config.py index 3ecf37b..4c54ac9 100644 --- a/configzen/config.py +++ b/configzen/config.py @@ -302,9 +302,6 @@ def config_load( to a TOML text file source. Keep in mind, however, that for binary formats such as non-XML Plist you must specify its format type to binary, so in that case just create `BinaryFileConfigSource("plist_file.plist")`. - context - The context to use during model validation. - See also [`model_validate`][pydantic.BaseModel.model_validate]. processor_factory The state factory to use to parse the newly loaded configuration data. diff --git a/configzen/formats/__init__.py b/configzen/formats/__init__.py index afcd14e..350159a 100644 --- a/configzen/formats/__init__.py +++ b/configzen/formats/__init__.py @@ -1,4 +1,5 @@ """`configzen.formats`: Data formats supported natively by configzen.""" + from __future__ import annotations from . import std_json, std_plist, toml, yaml diff --git a/configzen/sources.py b/configzen/sources.py index 9b8b36a..26a2767 100644 --- a/configzen/sources.py +++ b/configzen/sources.py @@ -304,13 +304,9 @@ def _guess_data_format(self) -> DataFormat[Any, AnyStr]: def load(self) -> Data: """ - Load the configuration source file and return its contents as a dictionary. - - Parameters - ---------- - data_format - The data format to use when loading the data. + Load the configuration source file. + Return its contents as a dictionary. """ return self.data_format.load(self._temp_stream_factory(self.read())) @@ -319,12 +315,6 @@ async def load_async(self) -> Data: Load the configuration source file asynchronously. Return its contents as a dictionary. - - Parameters - ---------- - data_format - The data format to use when loading the data. - """ return self.data_format.load(self._temp_stream_factory(await self.read_async())) @@ -336,8 +326,6 @@ def dump(self, data: Data) -> None: ---------- data The data to dump to the configuration source. - data_format - The data format to use when dumping the data. """ temp_stream = self._temp_stream_factory() @@ -355,8 +343,6 @@ async def dump_async(self, data: Data) -> int: ---------- data The data to dump to the configuration source. - data_format - The data format to use when dumping the data. """ temp_stream = self._temp_stream_factory()