X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8ea641eed5b9540287a8e9a9afa1458b72b9b630..e76adbecb8c3b62631868332c3b632363c7c16b4:/src/black/files.py?ds=sidebyside diff --git a/src/black/files.py b/src/black/files.py index 427ad66..213bbf8 100644 --- a/src/black/files.py +++ b/src/black/files.py @@ -92,7 +92,7 @@ def parse_pyproject_toml(path_config: str) -> Dict[str, Any]: If parsing fails, will raise a tomli.TOMLDecodeError """ with open(path_config, encoding="utf8") as f: - pyproject_toml = tomli.load(f) + pyproject_toml = tomli.load(f) # type: ignore # due to deprecated API usage config = pyproject_toml.get("tool", {}).get("black", {}) return {k.replace("--", "").replace("-", "_"): v for k, v in config.items()}