Skip to content

Commit

Permalink
fix: Global repository setting results in TypeError (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Oct 24, 2023
1 parent 2c104aa commit d45461e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2330.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that global repository setting results in TypeError .
2 changes: 1 addition & 1 deletion src/pdm/project/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def get_defaults(cls) -> dict[str, Any]:
defaults = {k: v.default for k, v in cls._config_map.items() if v.should_show()}
if cls.site is None:
cls.site = Config(platformdirs.site_config_path("pdm") / "config.toml")
defaults.update(cls.site)
defaults.update(cls.site.self_data)
return defaults

@cached_property
Expand Down

0 comments on commit d45461e

Please sign in to comment.