From 8960d249183cf78d8b35967b86fef8701fc9c37e Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Mon, 19 Jun 2023 09:29:42 -0500 Subject: [PATCH] Fixed issue regarding TOML types. - `tomlkit.parse()` returns a `TOMLDocument`. - `unwrap()` converts it into a `dict` --- bumpversion/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumpversion/config.py b/bumpversion/config.py index 3d671a49..c6247617 100644 --- a/bumpversion/config.py +++ b/bumpversion/config.py @@ -310,7 +310,7 @@ def read_toml_file(file_path: Path) -> Dict[str, Any]: import tomlkit # Load the TOML file - toml_data = tomlkit.parse(file_path.read_text()) + toml_data = tomlkit.parse(file_path.read_text()).unwrap() return toml_data.get("tool", {}).get("bumpversion", {})