We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1daaae5 + 8d6d599 commit 9370104Copy full SHA for 9370104
condax/config.py
@@ -36,8 +36,8 @@ class Config(BaseSettings):
36
37
@field_validator("prefix_path", "link_destination", mode="before")
38
@classmethod
39
- def ensure_prefix_path(cls, v: Path) -> Path:
40
- v = v.expanduser()
+ def ensure_prefix_path(cls, v: os.PathLike) -> Path:
+ v = Path(v).expanduser()
41
if not v.exists():
42
v.mkdir(parents=True, exist_ok=True)
43
v = v.resolve()
0 commit comments