From 3c6b429f43477548871972216260be9354fbab29 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 30 Aug 2023 16:09:50 +0800 Subject: [PATCH] Fix types --- src/pdm/project/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdm/project/config.py b/src/pdm/project/config.py index 96ccd72c2d..12247a6925 100644 --- a/src/pdm/project/config.py +++ b/src/pdm/project/config.py @@ -253,8 +253,8 @@ def __init__(self, config_file: Path | str | None = None, is_global: bool = Fals self.is_global = is_global if config_file is None: root = find_project_root() - config_file = root / "pdm.toml" # reference: project/core.py L135: Config(self.root / "pdm.toml") - self.config_file = config_file.resolve() + config_file = Path(root) / "pdm.toml" # reference: project/core.py L135: Config(self.root / "pdm.toml") + self.config_file = Path(config_file).resolve() self.deprecated = {v.replace: k for k, v in self._config_map.items() if v.replace} self._file_data = load_config(self.config_file) self._data = collections.ChainMap(