From ccc69857bbe55e985b156c0b38acad8cf65c0e15 Mon Sep 17 00:00:00 2001 From: SoraKatadzuma Date: Fri, 26 Jun 2026 16:27:33 -0500 Subject: [PATCH] Classmethod property deprecated --- chinook/_config.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/chinook/_config.py b/chinook/_config.py index ae7970e..9cb1655 100644 --- a/chinook/_config.py +++ b/chinook/_config.py @@ -30,6 +30,9 @@ class Config(yaml.YAMLObject): ) ] + config_directory: ClassVar[Path] = \ + Path.home() / ".config" / "chinook" + yaml_dumper: ClassVar[type[yaml.SafeDumper]] = yaml.SafeDumper yaml_loader: ClassVar[type[yaml.SafeLoader]] = yaml.SafeLoader yaml_tag: ClassVar[str] = u"!config" @@ -42,12 +45,6 @@ class Config(yaml.YAMLObject): candidates = self.toolings + self._DEFAULT_TOOLS return next((t for t in candidates if t.native), None) - @classmethod - @property - @cache - def config_directory(cls) -> Path: - return Path.home() / ".config" / "chinook" - @classmethod def create_default_or_load(cls, cfgpath: Path) -> Self: if Path.exists(cfgpath):