Classmethod property deprecated

This commit is contained in:
2026-06-26 16:27:33 -05:00
parent 1cc53f8bee
commit ccc69857bb
+3 -6
View File
@@ -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):